Right(T)
, if the request was successful (status code 2xx).
The body is then handled as specified in the request.
Left(String)
, if the request wasn't successful (status code
3xx, 4xx or 5xx). In this case, the response body is read into
a String
.
If redirects are followed, and there were redirects, contains responses for the intermediate requests. The first response (oldest) comes first.
Right(T)
, if the request was successful (status code 2xx).
Right(T)
, if the request was successful (status code 2xx).
The body is then handled as specified in the request.
Left(String)
, if the request wasn't successful (status code
3xx, 4xx or 5xx). In this case, the response body is read into
a String
.
If redirects are followed, and there were redirects, contains responses for the intermediate requests.
If redirects are followed, and there were redirects, contains responses for the intermediate requests. The first response (oldest) comes first.
Get the body of the response.
Get the body of the response. If the status code wasn't 2xx (and there's no body to return), an exception is thrown, containing the status code and the response from the server.
Right(T)
, if the request was successful (status code 2xx). The body is then handled as specified in the request.Left(String)
, if the request wasn't successful (status code 3xx, 4xx or 5xx). In this case, the response body is read into aString
.If redirects are followed, and there were redirects, contains responses for the intermediate requests. The first response (oldest) comes first.