class Body
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). The object will be serialized using the |
|
class DELETE
Make a DELETE request. |
|
class Field
Named pair for a form-encoded request. |
|
class FieldMap
Named key/value pairs for a form-encoded request. |
|
class FormUrlEncoded
Denotes that the request body will use form URL encoding. Fields should be declared as parameters and annotated with |
|
class GET
Make a GET request. |
|
class HEAD
Make a HEAD request. |
|
class Header
Replaces the header with the value of its target. Header parameters may be null which will omit them from the request. Passing a or array will result in a header for each non-null item.
|
|
class HeaderMap
Adds headers specified in the |
|
class Headers
Adds headers literally supplied in the Note: Headers do not overwrite each other. All headers with the same name will be included in the request.
|
|
class HTTP
Use a custom HTTP verb for a request. This annotation can also used for sending DELETE with a request body:
|
|
class Multipart
Denotes that the request body is multi-part. Parts should be declared as parameters and annotated with |
|
class OPTIONS
Make an OPTIONS request. |
|
class Part
Denotes a single part of a multi-part request. |
|
class PartMap
Denotes name and value parts of a multi-part request. |
|
class PATCH
Make a PATCH request. |
|
class Path
Named replacement in a URL path segment. Values are converted to strings using |
|
class POST
Make a POST request. |
|
class PUT
Make a PUT request. |
|
class Query
Query parameter appended to the URL. |
|
class QueryMap
Query parameter keys and values appended to the URL. |
|
class QueryName
Query parameter appended to the URL that has no value. |
|
class Streaming
Treat the response body on methods returning |
|
class Tag
Adds the argument instance as a request tag using the type as the key. Tag arguments may be null which will omit them from the request. Passing a parameterized type such as List<String> will use the raw type (i.e., List.class) as the key. Duplicate tag types are not allowed.
|
|
class Url
URL resolved against the base URL.
|