Annotation Types Summary
Annotation Type
Description
Use this annotation on a service method param when you want to directly control the request body of a POST/PUT request (instead of sending in as request parameters or form-style request body).
Make a DELETE request to a REST path relative to base URL.
Named pair for a form-encoded request.
Named key/value pairs for a form-encoded request.
Denotes that the request body will use form URL encoding.
Make a GET request to a REST path relative to base URL.
Make a HEAD request to a REST path relative to base URL.
Replaces the header with the the value of its target.
Adds headers literally supplied in the
value.
Denotes that the request body is multi-part.
Denotes a single part of a multi-part request.
Denotes name and value parts of a multi-part request
Make a PATCH request to a REST path relative to base URL.
Named replacement in the URL path.
Make a POST request to a REST path relative to base URL.
Make a PUT request to a REST path relative to base URL.
Query parameter appended to the URL.
Query parameter keys and values appended to the URL.
Treat the response body on methods returning
Response as is, i.e.
Package retrofit.http Description
Annotations for interface methods to control the HTTP request behavior.