Class Request
java.lang.Object
com.easypost.easyvcr.requestelements.HttpElement
com.easypost.easyvcr.requestelements.Request
Represents an HTTP request tracked by EasyVCR.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBody()Returns the body of the request.Returns the headers of the request.Returns the method of the request.getUri()Returns the URI of the request.Returns the URI of the request as a string.voidSets the body of the request.voidsetHeaders(Map<String,List<String>> headers)Sets the headers of the request.voidSets the method of the request.voidSets the URI of the request.voidsetUriString(String uriString)Sets the URI of the request from a string.Methods inherited from class com.easypost.easyvcr.requestelements.HttpElement
toJson
-
Constructor Details
-
Request
public Request()
-
-
Method Details
-
getBody
Returns the body of the request.- Returns:
- the body of the request
-
setBody
Sets the body of the request.- Parameters:
body- the body of the request
-
getMethod
Returns the method of the request.- Returns:
- the method of the request
-
setMethod
Sets the method of the request.- Parameters:
method- the method of the request
-
getHeaders
Returns the headers of the request.- Returns:
- the headers of the request
-
setHeaders
Sets the headers of the request.- Parameters:
headers- the headers of the request
-
getUri
Returns the URI of the request.- Returns:
- the URI of the request
-
setUri
Sets the URI of the request.- Parameters:
uri- the URI of the request
-
getUriString
Returns the URI of the request as a string.- Returns:
- the URI of the request as a string
-
setUriString
Sets the URI of the request from a string.- Parameters:
uriString- the URI of the request as a string
-