Meilisearch JS / index / MainRequestOptions
Type Alias: MainRequestOptions
MainRequestOptions =
object
Defined in: src/types/types.ts:85
Main options of a request.
Properties
body?
optionalbody?:string|boolean|number|object|null
Defined in: src/types/types.ts:105
The body of the request.
Remarks
This only really supports string for now (any other type gets stringified) but it could support more in the future. https://developer.mozilla.org/en-US/docs/Web/API/RequestInit#body
contentType?
optionalcontentType?:string
Defined in: src/types/types.ts:96
Content-Type passed to request Headers.
extraRequestInit?
optionalextraRequestInit?:ExtraRequestInit
Defined in: src/types/types.ts:110
An extra, more limited RequestInit, that may override some of the options.
method?
optionalmethod?:string
Defined in: src/types/types.ts:89
The REST method of the request.
params?
optionalparams?:URLSearchParamsRecord
Defined in: src/types/types.ts:91
The search parameters of the URL.
path
path:
string
Defined in: src/types/types.ts:87
The path or subpath of the URL to make a request to.