GitHub
Preparing search index...
The search index is not available
@seamapi/http - v0.26.0
@seamapi/http
connect
SeamHttpRequest
Class SeamHttpRequest<TResponse, TResponseKey>
Type Parameters
const
TResponse
const
TResponseKey
extends
keyof
TResponse
|
undefined
Implements
Promise
<
TResponseKey
extends
keyof
TResponse
?
TResponse
[
TResponseKey
]
:
undefined
>
Index
Constructors
constructor
Properties
#config
#parent
[to
String
Tag]
Accessors
body
method
response
Key
url
Methods
catch
execute
finally
then
Constructors
constructor
new
Seam
Http
Request
<
const
TResponse
,
const
TResponseKey
>
(
parent
,
config
)
:
SeamHttpRequest
<
TResponse
,
TResponseKey
>
Type Parameters
const
TResponse
const
TResponseKey
extends
undefined
|
string
|
number
|
symbol
Parameters
parent
:
SeamHttpRequestParent
config
:
SeamHttpRequestConfig
<
TResponseKey
>
Returns
SeamHttpRequest
<
TResponse
,
TResponseKey
>
Properties
Private
Readonly
#config
#config
:
SeamHttpRequestConfig
<
TResponseKey
>
Private
Readonly
#parent
#parent
:
SeamHttpRequestParent
Readonly
[to
String
Tag]
[to
String
Tag]
:
string
= 'SeamHttpRequest'
Accessors
body
get
body
(
)
:
unknown
Returns
unknown
method
get
method
(
)
:
Method
Returns
Method
response
Key
get
responseKey
(
)
:
TResponseKey
Returns
TResponseKey
url
get
url
(
)
:
URL
Returns
URL
Methods
catch
catch
<
TResult
>
(
onrejected
?
)
:
Promise
<
TResult
|
(
TResponseKey
extends
keyof
TResponse
?
TResponse
[
TResponseKey
<
TResponseKey
>
]
:
undefined
)
>
Type Parameters
TResult
=
never
Parameters
Optional
onrejected
:
null
|
(
(
reason
)
=>
TResult
|
PromiseLike
<
TResult
>
)
Returns
Promise
<
TResult
|
(
TResponseKey
extends
keyof
TResponse
?
TResponse
[
TResponseKey
<
TResponseKey
>
]
:
undefined
)
>
execute
execute
(
)
:
Promise
<
TResponseKey
extends
keyof
TResponse
?
TResponse
[
TResponseKey
<
TResponseKey
>
]
:
undefined
>
Returns
Promise
<
TResponseKey
extends
keyof
TResponse
?
TResponse
[
TResponseKey
<
TResponseKey
>
]
:
undefined
>
finally
finally
(
onfinally
?
)
:
Promise
<
TResponseKey
extends
keyof
TResponse
?
TResponse
[
TResponseKey
<
TResponseKey
>
]
:
undefined
>
Parameters
Optional
onfinally
:
null
|
(
(
)
=>
void
)
Returns
Promise
<
TResponseKey
extends
keyof
TResponse
?
TResponse
[
TResponseKey
<
TResponseKey
>
]
:
undefined
>
then
then
<
TResult1
,
TResult2
>
(
onfulfilled
?
,
onrejected
?
)
:
Promise
<
TResult1
|
TResult2
>
Type Parameters
TResult1
=
TResponseKey
extends
keyof
TResponse
?
TResponse
[
TResponseKey
<
TResponseKey
>
]
:
undefined
TResult2
=
never
Parameters
Optional
onfulfilled
:
null
|
(
(
value
)
=>
TResult1
|
PromiseLike
<
TResult1
>
)
Optional
onrejected
:
null
|
(
(
reason
)
=>
TResult2
|
PromiseLike
<
TResult2
>
)
Returns
Promise
<
TResult1
|
TResult2
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
#config
#parent
[to
String
Tag]
body
method
response
Key
url
catch
execute
finally
then
@seamapi/http - v0.26.0
Loading...