@Documented
@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface Headers
value
.
@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 |
Copyright © 2014 Square, Inc.. All Rights Reserved.