Annotation Interface Header
Русский: Аннотация указывает аргумент метода должен быть интерпретирован как заголовок запроса/ответа
English: Annotation specifies the method argument should be interpreted as a request/response header
Пример / Example:
English: Annotation specifies the method argument should be interpreted as a request/response header
Пример / Example:
@HttpClient("my.config")
public interface MyHttpClient {
@HttpRoute(method = "GET", path = "/username")
String getUserCode(@Header("name") String value);
}
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
String value- Returns:
- Русский: Описывает имя заголовка параметра
English: Describes the name of the Header parameter
- Default:
- ""
-