Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace net

Index

Type aliases

HttpResponseConvert

HttpResponseConvert<INPUT, OUTPUT>: (data: INPUT, res: HttpResponse) => OUTPUT

Type parameters

  • INPUT

  • OUTPUT

Type declaration

HttpResponseType

HttpResponseType: "xml" | "html" | "json" | "text" | "arraybuffer" | "blob"

QueryString

QueryString: 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

Let _error

  • Parameters

    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 _judgeType

Let _parseResponse

Let _queryString

  • _queryString(data: string | JsonObject | ArrayBuffer | Blob): string
  • Parameters

    Returns string

Let _queryURL

Let _response

  • Parameters

    • req: HttpRequest
    • xhr: XMLHttpRequest
    • Optional error: "timeout" | "abort" | "error"

    Returns HttpResponse

Let _send

Object literals

Let CACHE

CACHE: object

etag

etag: {}

Type declaration

lastModified

lastModified: {}

Type declaration