Documentation

XMLHttpRequest
in package
implements XMLHttpRequest

Table of Contents

Interfaces

XMLHttpRequest

Constants

NEWLINE  = "\n"

Properties

$connectTimeout  : int
$cookies  : array<string|int, mixed>
$followRedirects  : int
$globalDNS  : int
$httpVersion  : int
$keepAliveActive  : int
$keepAliveInterval  : int
$keepAliveTimeout  : int
$maxRedirects  : int
$readyState  : int
$response  : mixed
$responseText  : string|null
$responseType  : string
$responseXML  : DOMDocument|null
$status  : int
$statusText  : string
$timeout  : int
$transferTimeout  : int
$upload  : XMLHttpRequestEventTarget|null
$useCookies  : bool
$withCredentials  : bool
$_env  : array<string|int, mixed>
$_responseCharset  : string|null
$_responseType  : string|null
$async  : bool
$cookieFile  : string
$eventListeners  : array<string|int, mixed>
$method  : string
$password  : string|null
$requestHeaders  : array<string|int, mixed>
$responseHead  : string
$responseHeaders  : array<string|int, mixed>
$ssl  : bool
$url  : string
$urlParam  : array<string|int, mixed>
$user  : string|null
$utf8BOM  : string

Methods

__construct()  : mixed
abort()  : void
addEventListener()  : void
dispatchEvent()  : bool
getAllResponseHeaders()  : array<string|int, mixed>
getCookieFile()  : string
getRequestHeader()  : mixed
getResponseHeader()  : string
open()  : void
overrideMimeType()  : void
parseHeaderList()  : mixed
removeEventListener()  : void
send()  : void
setCookie()  : mixed
setCookieFile()  : void
setRequestHeader()  : void
addCookie()  : mixed
fireEventListener()  : mixed

Constants

Properties

$cookies

public static array<string|int, mixed> $cookies = array()

$transferTimeout

public int $transferTimeout = \Slothsoft\Core\Calendar\Seconds::HOUR

$_env

protected array<string|int, mixed> $_env = ['SERVER_NAME' => 'localhost', 'SERVER_SOFTWARE' => 'PHP']

$_responseCharset

protected string|null $_responseCharset = null

$eventListeners

protected array<string|int, mixed> $eventListeners

$requestHeaders

protected array<string|int, mixed> $requestHeaders

$responseHeaders

protected array<string|int, mixed> $responseHeaders

Methods

addEventListener()

public addEventListener(string $type, callable $listener[, bool $capture = false ]) : void
Parameters
$type : string
$listener : callable
$capture : bool = false

dispatchEvent()

public dispatchEvent(mixed $event) : bool
Parameters
$event : mixed
Return values
bool

getAllResponseHeaders()

public getAllResponseHeaders() : array<string|int, mixed>
Return values
array<string|int, mixed>

getCookieFile()

public getCookieFile() : string
Return values
string

getRequestHeader()

public getRequestHeader(mixed $header) : mixed
Parameters
$header : mixed

getResponseHeader()

public getResponseHeader(string $header) : string
Parameters
$header : string
Return values
string

open()

public open(string $method, string $url[, bool $async = true ][, string|null $user = null ][, string|null $password = null ]) : void
Parameters
$method : string
$url : string
$async : bool = true
$user : string|null = null
$password : string|null = null

overrideMimeType()

public overrideMimeType(string $mime) : void
Parameters
$mime : string

parseHeaderList()

public static parseHeaderList(mixed $head) : mixed
Parameters
$head : mixed

removeEventListener()

public removeEventListener(string $type, callable $listener[, bool $capture = false ]) : void
Parameters
$type : string
$listener : callable
$capture : bool = false

send()

public send([mixed $data = null ]) : void
Parameters
$data : mixed = null

setCookie()

public static setCookie(mixed $key, mixed $val) : mixed
Parameters
$key : mixed
$val : mixed

setCookieFile()

public setCookieFile(string $file) : void
Parameters
$file : string

setRequestHeader()

public setRequestHeader(string $header, string $value) : void
Parameters
$header : string
$value : string

addCookie()

protected static addCookie(mixed $line) : mixed
Parameters
$line : mixed

fireEventListener()

protected fireEventListener(mixed $type) : mixed
Parameters
$type : mixed

        
On this page

Search results