GETs uri
.
GETs uri
.
The returned Future fails with an java.io.IOException if the server cannot be reached, an UnauthorizedHttpException if authentication fails and a NotFoundHttpException if the server responds with a 404. For other errors it may fail with a HttpResponseException containing the appropriate error code.
request uri
the HTTP response following a successful request
HTTP GETs uri
and maps the JSON in the response content to type T
.
HTTP GETs uri
and maps the JSON in the response content to type T
.
The returned Future fails with a JsResultException if the non-empty response content fails to map to T
.
Empty responses fail with a AndroidException. May also fail with any exception get
may fail with.
type of response
uri to GET
JSON reader
an instance of T
Performs a multipart/form-data upload of file
.
Performs a multipart/form-data upload of file
.
file to upload
Gets called before the request is executed.
Gets called before the request is executed.
The default implementation trivially returns uri
.
the user-supplied uri string
the uri actually used in the request