Documentation

XMLHttpRequest
in package
implements XMLHttpRequest

Table of Contents

Interfaces

XMLHttpRequest

Constants

NEWLINE  = "\n"

Properties

$connectTimeout  : mixed
$cookies  : mixed
$followRedirects  : mixed
$globalDNS  : mixed
$httpVersion  : mixed
$keepAliveActive  : mixed
$keepAliveInterval  : mixed
$keepAliveTimeout  : mixed
$maxRedirects  : mixed
$readyState  : mixed
$response  : mixed
$responseText  : mixed
$responseType  : mixed
$responseXML  : mixed
$status  : mixed
$statusText  : mixed
$timeout  : mixed
$transferTimeout  : mixed
$upload  : mixed
$useCookies  : mixed
$withCredentials  : mixed
$_env  : mixed
$_responseCharset  : mixed
$_responseType  : mixed
$async  : mixed
$cookieFile  : mixed
$eventListeners  : mixed
$method  : mixed
$password  : mixed
$requestHeaders  : mixed
$responseHead  : mixed
$responseHeaders  : mixed
$ssl  : mixed
$url  : mixed
$urlParam  : mixed
$user  : mixed
$utf8BOM  : mixed

Methods

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

Constants

Properties

$transferTimeout

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

$_env

protected mixed $_env = ['SERVER_NAME' => 'localhost', 'SERVER_SOFTWARE' => 'PHP']

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>

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 $user = null ][, string $password = null ]) : void
Parameters
$method : string
$url : string
$async : bool = true
$user : string = null
$password : string = 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(mixed $file) : mixed
Parameters
$file : mixed

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