public static interface HttpConfiguration.HeadersProvider
Thread-safety: The implementation must be thread-safe. The callback method will be invoked simultaneously on different threads if there are simultaneous vAPI invocations with this configuration.
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<HttpConfiguration.Header> |
getHeaders()
Retrieves the headers to be added to an HTTP request.
|
java.lang.Iterable<HttpConfiguration.Header> getHeaders()
Note that headers with "vapi-ctx-" prefix and the Accept-Language
header are declared with precedence of the HttpConfiguration.HeadersProvider
setting. When the same header names are provided both through the
ExecutionContext.ApplicationData
and the
HttpConfiguration.HeadersProvider
, the values from the former will be neglected
in favor of the latter.
null
, but the headers cannot contain
null
elements.