|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value=PARAMETER) public @interface Header
Replaces the header with the the value of its target.
@GET("/") void foo(@Header("Accept-Language") String lang, Callback<Response> cb);
Header parameters may be null
which will omit them from the request.
Note: Headers do not overwrite each other. All headers with the same name will be included in the request.
Required Element Summary | |
---|---|
String |
value
|
Element Detail |
---|
public abstract String value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |