retrofit.http
Annotation Type Header


@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.

Author:
Adrian Cole ([email protected])

Required Element Summary
 String value
           
 

Element Detail

value

public abstract String value


Copyright © 2013 Square, Inc.. All Rights Reserved.