api-def API Reference
Preparing search index...
RequestHost
Interface RequestHost
interface
RequestHost
{
api
:
Api
;
baseUrl
:
string
;
method
:
RequestMethod
;
path
:
string
;
responseType
:
ResponseType
|
undefined
;
validation
:
Validation
;
computeConfig
<
TParams
extends
string
|
undefined
,
TQuery
extends
Query
,
TBody
extends
Body
|
undefined
,
TState
extends
State
,
TRequestHeaders
extends
RawHeaders
|
undefined
,
>
(
config
:
RequestConfig
<
TParams
,
TQuery
,
TBody
,
TState
,
TRequestHeaders
>
,
)
:
ComputedRequestConfig
<
TParams
,
TQuery
,
TBody
,
TState
,
TRequestHeaders
>
;
getRequestBackend
()
:
RequestBackend
;
}
Implemented by
Endpoint
Index
Properties
api
base
Url
method
path
response
Type
validation
Methods
compute
Config
get
Request
Backend
Properties
Readonly
api
api
:
Api
Readonly
base
Url
baseUrl
:
string
Readonly
method
method
:
RequestMethod
Readonly
path
path
:
string
Readonly
response
Type
responseType
:
ResponseType
|
undefined
Readonly
validation
validation
:
Validation
Methods
compute
Config
computeConfig
<
TParams
extends
string
|
undefined
,
TQuery
extends
Query
,
TBody
extends
Body
|
undefined
,
TState
extends
State
,
TRequestHeaders
extends
RawHeaders
|
undefined
,
>
(
config
:
RequestConfig
<
TParams
,
TQuery
,
TBody
,
TState
,
TRequestHeaders
>
,
)
:
ComputedRequestConfig
<
TParams
,
TQuery
,
TBody
,
TState
,
TRequestHeaders
>
Type Parameters
TParams
extends
string
|
undefined
TQuery
extends
Query
TBody
extends
Body
|
undefined
TState
extends
State
TRequestHeaders
extends
RawHeaders
|
undefined
Parameters
config
:
RequestConfig
<
TParams
,
TQuery
,
TBody
,
TState
,
TRequestHeaders
>
Returns
ComputedRequestConfig
<
TParams
,
TQuery
,
TBody
,
TState
,
TRequestHeaders
>
get
Request
Backend
getRequestBackend
()
:
RequestBackend
Returns
RequestBackend
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
api
base
Url
method
path
response
Type
validation
Methods
compute
Config
get
Request
Backend
api-def API Reference
Loading...