Class Request

java.lang.Object
com.easypost.easyvcr.requestelements.HttpElement
com.easypost.easyvcr.requestelements.Request

public final class Request extends HttpElement
Represents an HTTP request tracked by EasyVCR.
  • Constructor Details

    • Request

      public Request()
  • Method Details

    • getBody

      public String getBody()
      Returns the body of the request.
      Returns:
      the body of the request
    • setBody

      public void setBody(String body)
      Sets the body of the request.
      Parameters:
      body - the body of the request
    • getMethod

      public String getMethod()
      Returns the method of the request.
      Returns:
      the method of the request
    • setMethod

      public void setMethod(String method)
      Sets the method of the request.
      Parameters:
      method - the method of the request
    • getHeaders

      public Map<String,​List<String>> getHeaders()
      Returns the headers of the request.
      Returns:
      the headers of the request
    • setHeaders

      public void setHeaders(Map<String,​List<String>> headers)
      Sets the headers of the request.
      Parameters:
      headers - the headers of the request
    • getUri

      public URI getUri()
      Returns the URI of the request.
      Returns:
      the URI of the request
    • setUri

      public void setUri(URI uri)
      Sets the URI of the request.
      Parameters:
      uri - the URI of the request
    • getUriString

      public String getUriString()
      Returns the URI of the request as a string.
      Returns:
      the URI of the request as a string
    • setUriString

      public void setUriString(String uriString)
      Sets the URI of the request from a string.
      Parameters:
      uriString - the URI of the request as a string