Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 1.93 KB

kibana-plugin-core-public.httpfetchoptions.md

File metadata and controls

24 lines (16 loc) · 1.93 KB

Home > kibana-plugin-core-public > HttpFetchOptions

HttpFetchOptions interface

All options that may be used with a HttpHandler.

Signature:

export interface HttpFetchOptions extends HttpRequestInit 

Properties

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.