@Documented @Target(value=PARAMETER) @Retention(value=RUNTIME) public @interface HeaderMap
Map.
Values are converted to strings using Retrofit.stringConverter(Type, Annotation[])
(or Object.toString(), if no matching string converter is installed).
Simple Example:
@GET("/search")
void list(@HeaderMap Map<String, String> headers);
...
// The following call yields /search with headers
// Accept: text/plain and Accept-Charset: utf-8
foo.list(ImmutableMap.of("Accept", "text/plain", "Accept-Charset", "utf-8"));
Copyright © 2017 Square, Inc.. All rights reserved.