@Retention(value=RUNTIME)
@Target(value=PARAMETER)
public static @interface Retrofit.Header
@GET("/")
void foo(@Header("Accept-Language") String lang, Callback<Response> cb);
Header parameters may be null which will omit them from the request. Passing a
List or array will result in a header for each non-null item.
Note: Headers do not overwrite each other. All headers with the same name will be included in the request.
| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String |
value |