@Documented
@Retention(value=RUNTIME)
@Target(value=PARAMETER)
public @interface Header
@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.
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
value |
Copyright © 2014 Square, Inc.. All Rights Reserved.