FuncType - v0.60.3
GitHub
Preparing search index...
HttpError
Type Alias HttpError
HttpError
:
{
_tag
:
"HttpError"
}
&
{
decodeError
:
(
url
:
string
,
method
:
HttpMethod
,
body
:
string
,
cause
:
unknown
,
)
=>
DecodeError
;
httpStatusError
:
(
url
:
string
,
method
:
HttpMethod
,
status
:
number
,
statusText
:
string
,
body
:
string
,
)
=>
HttpStatusError
;
isDecodeError
:
(
error
:
HttpError
)
=>
error
is
DecodeError
;
isHttpStatusError
:
(
error
:
HttpError
)
=>
error
is
HttpStatusError
;
isNetworkError
:
(
error
:
HttpError
)
=>
error
is
NetworkError
;
match
:
<
T
>
(
error
:
HttpError
,
patterns
:
{
DecodeError
:
(
e
:
DecodeError
)
=>
T
;
HttpStatusError
:
(
e
:
HttpStatusError
)
=>
T
;
NetworkError
:
(
e
:
NetworkError
)
=>
T
;
}
,
)
=>
T
;
networkError
:
(
url
:
string
,
method
:
HttpMethod
,
cause
:
unknown
,
)
=>
NetworkError
;
}
Settings
Member Visibility
Inherited
Internal
Theme
OS
Light
Dark
GitHub
FuncType - v0.60.3
Loading...