@nodecfdi/sat-ws-descarga-masiva
Preparing search index...
web_client/cresponse
CResponse
Class CResponse
Index
Constructors
constructor
Methods
get
Body
get
Headers
get
Status
Code
is
Empty
status
Code
Is
Client
Error
status
Code
Is
Server
Error
status
Code
Is
Timeout
Error
to
JSON
timeout
Constructors
constructor
new
CResponse
(
statuscode
:
number
,
body
:
string
,
headers
?:
Record
<
string
,
string
>
,
)
:
CResponse
Parameters
statuscode
:
number
body
:
string
headers
:
Record
<
string
,
string
>
= {}
Returns
CResponse
Methods
get
Body
getBody
()
:
string
Returns
string
get
Headers
getHeaders
()
:
Record
<
string
,
string
>
Returns
Record
<
string
,
string
>
get
Status
Code
getStatusCode
()
:
number
Returns
number
is
Empty
isEmpty
()
:
boolean
Returns
boolean
status
Code
Is
Client
Error
statusCodeIsClientError
()
:
boolean
Returns
boolean
status
Code
Is
Server
Error
statusCodeIsServerError
()
:
boolean
Returns
boolean
status
Code
Is
Timeout
Error
statusCodeIsTimeoutError
()
:
boolean
Returns
boolean
to
JSON
toJSON
()
:
{
body
:
string
;
headers
:
Record
<
string
,
string
>
;
statusCode
:
number
}
Returns
{
body
:
string
;
headers
:
Record
<
string
,
string
>
;
statusCode
:
number
}
Static
timeout
timeout
(
milliseconds
?:
number
)
:
CResponse
Parameters
Optional
milliseconds
:
number
Returns
CResponse
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
get
Body
get
Headers
get
Status
Code
is
Empty
status
Code
Is
Client
Error
status
Code
Is
Server
Error
status
Code
Is
Timeout
Error
to
JSON
timeout
@nodecfdi/sat-ws-descarga-masiva
Loading...