-
Notifications
You must be signed in to change notification settings - Fork 3
HttpClientUtil
Bria Morgan edited this page Sep 24, 2018
·
1 revision
Use retrieveGetReponse
and retrievePostResponse
for making any web calls. This will take care of setting up the client.
Use composeURL
to combine any components into a URL. This will avoid needing to predict whether a fragment ends with a '/' or not.
Use readListFromResponse
or readObjectFromResponse
to convert an HttpResponse into a known object type.
Use throwResponseError
if a response comes back from a resource with an error, to throw the appropriate exception and pass the message on.