Right(T)
, if the request was successful (status code 2xx).
The body is then handled as specified in the request.
Left(Array[Byte])
, if the request wasn't successful (status code
3xx, 4xx or 5xx).
If redirects are followed, and there were redirects, contains responses for the intermediate requests. The first response (oldest) comes first.
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.
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(Array[Byte])
, if the request wasn't successful (status code
3xx, 4xx or 5xx).
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(Array[Byte])
, if the request wasn't successful (status code 3xx, 4xx or 5xx).If redirects are followed, and there were redirects, contains responses for the intermediate requests. The first response (oldest) comes first.