Home > kibana-plugin-core-public > HttpFetchOptions
All options that may be used with a HttpHandler.
Signature:
export interface HttpFetchOptions extends HttpRequestInit
Property | Type | Description |
---|---|---|
asResponse | boolean |
When true the return type of HttpHandler will be an HttpResponse with detailed request and response information. When false , the return type will just be the parsed response body. Defaults to false . |
asSystemRequest | boolean |
Whether or not the request should include the "system request" header to differentiate an end user request from Kibana internal request. Can be read on the server-side using KibanaRequest#isSystemRequest. Defaults to false . |
headers | HttpHeadersInit |
Headers to send with the request. See HttpHeadersInit. |
prependBasePath | boolean |
Whether or not the request should automatically prepend the basePath. Defaults to true . |
query | HttpFetchQuery |
The query string for an HTTP request. See HttpFetchQuery. |