@Retention(value=CLASS) @Target(value=METHOD) public @interface Header
Rest annotated classes to add headers to a
particular method.
Example :
@Rest(converters = MappingJacksonHttpMessageConverter.class)
public interface MyRestClient {
@Header(name = "keep-alive", name = "300")
@Post("/test")
void testRoute();
}
HeadersCopyright © 2010–2020 simpligility technologies inc.. All rights reserved.