@Target(value={METHOD,TYPE}) @Retention(value=RUNTIME) public @interface Headers
value
. Variables to the the right of the colon are
expanded. @Headers("Content-Type: application/xml") interface SoapApi { ... @RequestLine("GET /") @Headers("Cache-Control: max-age=640000") ... @RequestLine("POST /") @Headers({ "X-Foo: Bar", "X-Ping: {token}" }) void post(@Param("token") String token); ...
@RequestLine("POST /") @Headers({ "X-Ping: {token}" }) void post(@Named("token") String token); ...
@POST @Path("/") void post(@HeaderParam("X-Ping") String token); ...
public abstract String[] value
Copyright © 2012–2021 OpenFeign. All rights reserved.