Search
Preparing search index...
The search index is not available
JSDK 2.7.0 API
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
JS
net
Namespace net
Index
Classes
Http
MIME
URI
Interfaces
Http
Request
Http
Response
Type aliases
Http
Response
Convert
Http
Response
Type
Query
String
URIData
URLString
Variables
J
Y
_ADU
_AUTH_
REG
_URI_
REG
Functions
_done
_error
_finalURL
_headers
_judge
Type
_parse
Response
_query
String
_queryURL
_response
_send
Object literals
CACHE
Type aliases
Http
Response
Convert
Http
Response
Convert<INPUT, OUTPUT>
:
(
data
:
INPUT
, res
:
HttpResponse
)
=>
OUTPUT
Type parameters
INPUT
OUTPUT
Type declaration
(
data
:
INPUT
, res
:
HttpResponse
)
:
OUTPUT
Parameters
data:
INPUT
res:
HttpResponse
Returns
OUTPUT
Http
Response
Type
Http
Response
Type
:
"xml"
|
"html"
|
"json"
|
"text"
|
"arraybuffer"
|
"blob"
Query
String
Query
String
:
string
A string of Query
URL字符串
URIData
URIData
:
{
fragment
?:
string
;
host
:
string
;
params
?:
JsonObject
<
string
>
;
password
?:
string
;
path
?:
string
;
port
?:
number
;
scheme
?:
string
;
user
?:
string
}
All parts of an URI
URI数据结构
Type declaration
Optional
fragment
?:
string
host
:
string
Optional
params
?:
JsonObject
<
string
>
Optional
password
?:
string
Optional
path
?:
string
Optional
port
?:
number
Optional
scheme
?:
string
Optional
user
?:
string
URLString
URLString
:
string
A string of URL
URL字符串
Variables
Let
J
J
:
Jsons
= Jsons
Let
Y
Y
:
Types
= Types
Let
_ADU
_ADU
:
any
= null
Let
_AUTH_
REG
_AUTH_
REG
:
RegExp
= /^(([^\:@]*)(\:([^\:@]*))?@)?([^\:@]*)(\:(\d{1,3}))?/
Let
_URI_
REG
_URI_
REG
:
RegExp
= /^(([^\:\/\?\#]+)\:)?(\/\/([^\/\?\#]*))?([^\?\#]*)(\\?([^\#]*))?(\#(.*))?/
Functions
Let
_done
_done
(
this
:
PromiseContext
<
HttpResponse
>
, oURL
:
string
, req
:
HttpRequest
, xhr
:
XMLHttpRequest
)
:
void
Parameters
this:
PromiseContext
<
HttpResponse
>
oURL:
string
req:
HttpRequest
xhr:
XMLHttpRequest
Returns
void
Let
_error
_error
(
this
:
PromiseContext
<
any
>
, req
:
HttpRequest
, xhr
:
XMLHttpRequest
, error
:
"timeout"
|
"abort"
|
"error"
)
:
void
Parameters
this:
PromiseContext
<
any
>
req:
HttpRequest
xhr:
XMLHttpRequest
error:
"timeout"
|
"abort"
|
"error"
Returns
void
Let
_finalURL
_finalURL
(
url
:
string
, cache
:
boolean
)
:
string
Parameters
url:
string
cache:
boolean
Returns
string
Let
_headers
_headers
(
xhr
:
XMLHttpRequest
)
:
{}
Parameters
xhr:
XMLHttpRequest
Returns
{}
Let
_judge
Type
_judge
Type
(
t
:
string
, dt
:
HttpResponseType
)
:
HttpResponseType
Parameters
t:
string
dt:
HttpResponseType
Returns
HttpResponseType
Let
_parse
Response
_parse
Response
(
this
:
PromiseContext
<
any
>
, res
:
HttpResponse
, req
:
HttpRequest
, xhr
:
XMLHttpRequest
)
:
any
Parameters
this:
PromiseContext
<
any
>
res:
HttpResponse
req:
HttpRequest
xhr:
XMLHttpRequest
Returns
any
Let
_query
String
_query
String
(
data
:
string
|
JsonObject
|
ArrayBuffer
|
Blob
)
:
string
Parameters
data:
string
|
JsonObject
|
ArrayBuffer
|
Blob
Returns
string
Let
_queryURL
_queryURL
(
req
:
HttpRequest
)
:
string
Parameters
req:
HttpRequest
Returns
string
Let
_response
_response
(
req
:
HttpRequest
, xhr
:
XMLHttpRequest
, error
?:
"timeout"
|
"abort"
|
"error"
)
:
HttpResponse
Parameters
req:
HttpRequest
xhr:
XMLHttpRequest
Optional
error:
"timeout"
|
"abort"
|
"error"
Returns
HttpResponse
Let
_send
_send
(
this
:
PromiseContext
<
HttpResponse
>
, req
:
HttpRequest
)
:
void
Parameters
this:
PromiseContext
<
HttpResponse
>
req:
HttpRequest
Returns
void
Object literals
Let
CACHE
CACHE
:
object
etag
etag
:
{}
Type declaration
last
Modified
last
Modified
:
{}
Type declaration
Globals
JS
an
app
core
d2
ds
fx
input
ioc
lang
math
media
model
net
store
sugar
ui
unit
util
view
Http
MIME
URI
Http
Request
Http
Response
Http
Response
Convert
Http
Response
Type
Query
String
URIData
URLString
J
Y
_ADU
_AUTH_
REG
_URI_
REG
_done
_error
_finalURL
_headers
_judge
Type
_parse
Response
_query
String
_queryURL
_response
_send
CACHE
A string of Query
URL字符串