@Documented
@Target(value={METHOD,TYPE})
@Retention(value=RUNTIME)
public static @interface Retrofit.Headers
value.
@Headers @GET|@PUT|@POST|@DELETE, @Headers class Retrofit
@Headers("Cache-Control: max-age=640000")
@GET("/")
...
@Headers({
"X-Foo: Bar",
"X-Ping: Pong"
})
@GET("/")
...
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 |