Element index for package HTTP_Request2
[ a ]
[ b ]
[ c ]
[ d ]
[ e ]
[ f ]
[ g ]
[ h ]
[ i ]
[ l ]
[ m ]
[ n ]
[ o ]
[ p ]
[ r ]
[ s ]
[ t ]
[ u ]
[ v ]
[ w ]
[ _ ]
_
- __construct
- in file Request2.php, method HTTP_Request2::__construct()
Constructor. Can set request URL, method and configuration array.
- __construct
- in file Response.php, method HTTP_Request2_Response::__construct()
Constructor, parses the response status line
- __construct
- in file SocketWrapper.php, method HTTP_Request2_SocketWrapper::__construct()
Class constructor, tries to establish connection
- __construct
- in file SOCKS5.php, method HTTP_Request2_SOCKS5::__construct()
Constructor, tries to connect and authenticate to a SOCKS5 proxy
- __construct
- in file CookieJar.php, method HTTP_Request2_CookieJar::__construct()
Class constructor, sets various options
- __construct
- in file Exception.php, method HTTP_Request2_Exception::__construct()
Constructor, can set package error code and native error code
- __construct
- in file Log.php, method HTTP_Request2_Observer_Log::__construct()
Constructor.
- __construct
- in file MultipartBody.php, method HTTP_Request2_MultipartBody::__construct()
Constructor. Sets the arrays with POST data.
- __destruct
- in file SocketWrapper.php, method HTTP_Request2_SocketWrapper::__destruct()
Destructor, disconnects socket
- __toString
- in file MultipartBody.php, method HTTP_Request2_MultipartBody::__toString()
Returns the body as string
top
a
- $adapter
- in file Request2.php, variable HTTP_Request2::$adapter
Adapter used to perform actual HTTP request
- $auth
- in file Request2.php, variable HTTP_Request2::$auth
Authentication data
- addAuthorizationHeader
- in file Socket.php, method HTTP_Request2_Adapter_Socket::addAuthorizationHeader()
Adds 'Authorization' header (if needed) to request headers array
- addCookie
- in file Request2.php, method HTTP_Request2::addCookie()
Adds a cookie to the request
- addCookiesFromResponse
- in file CookieJar.php, method HTTP_Request2_CookieJar::addCookiesFromResponse()
Adds cookies set in HTTP response to the jar
- addPostParameter
- in file Request2.php, method HTTP_Request2::addPostParameter()
Adds POST parameter(s) to the request.
- addProxyAuthorizationHeader
- in file Socket.php, method HTTP_Request2_Adapter_Socket::addProxyAuthorizationHeader()
Adds 'Proxy-Authorization' header (if needed) to request headers array
- addResponse
- in file Mock.php, method HTTP_Request2_Adapter_Mock::addResponse()
Adds response to the queue
- addUpload
- in file Request2.php, method HTTP_Request2::addUpload()
Adds a file to form-based file upload
- appendBody
- in file Response.php, method HTTP_Request2_Response::appendBody()
Appends a string to the response body
- attach
- in file Request2.php, method HTTP_Request2::attach()
Attaches a new observer
- AUTH_BASIC
- in file Request2.php, class constant HTTP_Request2::AUTH_BASIC
Constants for HTTP authentication schemes
- AUTH_DIGEST
- in file Request2.php, class constant HTTP_Request2::AUTH_DIGEST
Constants for HTTP authentication schemes
- Adapter.php
- procedural page Adapter.php
top
top
c
- $challenges
- in file Socket.php, variable HTTP_Request2_Adapter_Socket::$challenges
Data for digest authentication scheme
- $chunkLength
- in file Socket.php, variable HTTP_Request2_Adapter_Socket::$chunkLength
Remaining length of the current chunk, when reading chunked response
- $code
- in file Response.php, variable HTTP_Request2_Response::$code
Status code
- $config
- in file Request2.php, variable HTTP_Request2::$config
Configuration parameters
- $connectionWarnings
- in file SocketWrapper.php, variable HTTP_Request2_SocketWrapper::$connectionWarnings
PHP warning messages raised during stream_socket_client() call
- $contentLength
- in file Adapter.php, variable HTTP_Request2_Adapter::$contentLength
Length of the request body
- $cookieJar
- in file Request2.php, variable HTTP_Request2::$cookieJar
Cookie jar to persist cookies between requests
- $cookies
- in file Response.php, variable HTTP_Request2_Response::$cookies
Cookies set in the response
- $cookies
- in file CookieJar.php, variable HTTP_Request2_CookieJar::$cookies
Array of stored cookies
- calculateRequestLength
- in file Adapter.php, method HTTP_Request2_Adapter::calculateRequestLength()
Calculates length of the request body, adds proper headers
- callbackReadBody
- in file Curl.php, method HTTP_Request2_Adapter_Curl::callbackReadBody()
Callback function called by cURL for reading the request body
- callbackWriteBody
- in file Curl.php, method HTTP_Request2_Adapter_Curl::callbackWriteBody()
Callback function called by cURL for saving the response body
- callbackWriteHeader
- in file Curl.php, method HTTP_Request2_Adapter_Curl::callbackWriteHeader()
Callback function called by cURL for saving the response headers
- canKeepAlive
- in file Socket.php, method HTTP_Request2_Adapter_Socket::canKeepAlive()
Checks whether current connection may be reused or should be closed
- checkAndUpdateFields
- in file CookieJar.php, method HTTP_Request2_CookieJar::checkAndUpdateFields()
Checks cookie array for correctness, possibly updating its 'domain', 'path' and 'expires' fields
- checkDomainsList
- in file CookieJar.php, method HTTP_Request2_CookieJar::checkDomainsList()
Recursive helper method for getRegisteredDomain()
- checkTimeout
- in file SocketWrapper.php, method HTTP_Request2_SocketWrapper::checkTimeout()
Throws an Exception if stream timed out
- connect
- in file SOCKS5.php, method HTTP_Request2_SOCKS5::connect()
Connects to a remote host via proxy
- connect
- in file Socket.php, method HTTP_Request2_Adapter_Socket::connect()
Connects to the remote server
- connectionWarningsHandler
- in file SocketWrapper.php, method HTTP_Request2_SocketWrapper::connectionWarningsHandler()
Error handler to use during stream_socket_client() call
- createCurlHandle
- in file Curl.php, method HTTP_Request2_Adapter_Curl::createCurlHandle()
Creates a new cURL handle and populates it with data from the request
- createDigestResponse
- in file Socket.php, method HTTP_Request2_Adapter_Socket::createDigestResponse()
Creates a value for [Proxy-]Authorization header when using digest authentication
- createResponseFromFile
- in file Mock.php, method HTTP_Request2_Adapter_Mock::createResponseFromFile()
Creates a new HTTP_Request2_Response object from a file
- createResponseFromString
- in file Mock.php, method HTTP_Request2_Adapter_Mock::createResponseFromString()
Creates a new HTTP_Request2_Response object from a string
- Curl.php
- procedural page Curl.php
- CookieJar.php
- procedural page CookieJar.php
top
top
top
top
g
- getAll
- in file CookieJar.php, method HTTP_Request2_CookieJar::getAll()
Returns all cookies stored in a jar
- getAuth
- in file Request2.php, method HTTP_Request2::getAuth()
Returns the authentication data
- getBody
- in file Response.php, method HTTP_Request2_Response::getBody()
Returns the body of the response
- getBody
- in file Request2.php, method HTTP_Request2::getBody()
Returns the request body
- getBoundary
- in file MultipartBody.php, method HTTP_Request2_MultipartBody::getBoundary()
Returns the boundary to use in Content-Type header
- getConfig
- in file Request2.php, method HTTP_Request2::getConfig()
Returns the value(s) of the configuration parameter(s)
- getCookieJar
- in file Request2.php, method HTTP_Request2::getCookieJar()
Returns current CookieJar object or null if none
- getCookies
- in file Response.php, method HTTP_Request2_Response::getCookies()
Returns cookies set in response
- getDefaultReasonPhrase
- in file Response.php, method HTTP_Request2_Response::getDefaultReasonPhrase()
Returns the default reason phrase for the given code or all reason phrases
- getEffectiveUrl
- in file Response.php, method HTTP_Request2_Response::getEffectiveUrl()
Returns the effective URL of the response
- getHeader
- in file Response.php, method HTTP_Request2_Response::getHeader()
Returns either the named header or all response headers
- getHeaders
- in file Request2.php, method HTTP_Request2::getHeaders()
Returns the request headers
- getInfo
- in file Curl.php, method HTTP_Request2_Adapter_Curl::getInfo()
Returns information about last transfer
- getLastEvent
- in file Request2.php, method HTTP_Request2::getLastEvent()
Returns the last event
- getLength
- in file MultipartBody.php, method HTTP_Request2_MultipartBody::getLength()
Returns the length of the body to use in Content-Length header
- getMatching
- in file CookieJar.php, method HTTP_Request2_CookieJar::getMatching()
Returns all cookies matching a given request URL
- getMethod
- in file Request2.php, method HTTP_Request2::getMethod()
Returns the request method
- getNativeCode
- in file Exception.php, method HTTP_Request2_Exception::getNativeCode()
Returns error code produced by underlying PHP extension
- getReasonPhrase
- in file Response.php, method HTTP_Request2_Response::getReasonPhrase()
Returns the reason phrase
- getRegisteredDomain
- in file CookieJar.php, method HTTP_Request2_CookieJar::getRegisteredDomain()
Removes subdomains to get the registered domain (the first after top-level)
- getStatus
- in file Response.php, method HTTP_Request2_Response::getStatus()
Returns the status code
- getUrl
- in file Request2.php, method HTTP_Request2::getUrl()
Returns the request URL
- getVersion
- in file Response.php, method HTTP_Request2_Response::getVersion()
Get the HTTP version of the response
top
h
- $headerMap
- in file Curl.php, variable HTTP_Request2_Adapter_Curl::$headerMap
Mapping of header names to cURL options
- $headers
- in file Request2.php, variable HTTP_Request2::$headers
Request headers
- $headers
- in file Response.php, variable HTTP_Request2_Response::$headers
Associative array of response headers
- handleRedirect
- in file Socket.php, method HTTP_Request2_Adapter_Socket::handleRedirect()
Handles HTTP redirection
- HTTP_Request2
- in file Request2.php, class HTTP_Request2
Class representing a HTTP request message
- HTTP_Request2_Adapter
- in file Adapter.php, class HTTP_Request2_Adapter
Base class for HTTP_Request2 adapters
- HTTP_Request2_Adapter_Curl
- in file Curl.php, class HTTP_Request2_Adapter_Curl
Adapter for HTTP_Request2 wrapping around cURL extension
- HTTP_Request2_Adapter_Mock
- in file Mock.php, class HTTP_Request2_Adapter_Mock
Mock adapter intended for testing
- HTTP_Request2_Adapter_Socket
- in file Socket.php, class HTTP_Request2_Adapter_Socket
Socket-based adapter for HTTP_Request2
- HTTP_Request2_ConnectionException
- in file Exception.php, class HTTP_Request2_ConnectionException
Exception thrown when connection to a web or proxy server fails
- HTTP_Request2_CookieJar
- in file CookieJar.php, class HTTP_Request2_CookieJar
Stores cookies and passes them between HTTP requests
- HTTP_Request2_Exception
- in file Exception.php, class HTTP_Request2_Exception
Base exception class for HTTP_Request2 package
- HTTP_Request2_LogicException
- in file Exception.php, class HTTP_Request2_LogicException
Exception that represents error in the program logic
- HTTP_Request2_MessageException
- in file Exception.php, class HTTP_Request2_MessageException
Exception thrown when sending or receiving HTTP message fails
- HTTP_Request2_MultipartBody
- in file MultipartBody.php, class HTTP_Request2_MultipartBody
Class for building multipart/form-data request body
- HTTP_Request2_NotImplementedException
- in file Exception.php, class HTTP_Request2_NotImplementedException
Exception thrown in case of missing features
- HTTP_Request2_Observer_Log
- in file Log.php, class HTTP_Request2_Observer_Log
A debug observer useful for debugging / testing.
- HTTP_Request2_Response
- in file Response.php, class HTTP_Request2_Response
Class representing a HTTP response
- HTTP_Request2_SocketWrapper
- in file SocketWrapper.php, class HTTP_Request2_SocketWrapper
Socket wrapper class used by Socket Adapter
- HTTP_Request2_SOCKS5
- in file SOCKS5.php, class HTTP_Request2_SOCKS5
SOCKS5 proxy connection class (used by Socket Adapter)
top
top
top
m
- $method
- in file Request2.php, variable HTTP_Request2::$method
Request method
- Mock.php
- procedural page Mock.php
- MultipartBody.php
- procedural page MultipartBody.php
- MALFORMED_RESPONSE
- in file Exception.php, class constant HTTP_Request2_Exception::MALFORMED_RESPONSE
Server returned a response that does not conform to HTTP protocol
- METHOD_CONNECT
- in file Request2.php, class constant HTTP_Request2::METHOD_CONNECT
Constants for HTTP request methods
- METHOD_DELETE
- in file Request2.php, class constant HTTP_Request2::METHOD_DELETE
Constants for HTTP request methods
- METHOD_GET
- in file Request2.php, class constant HTTP_Request2::METHOD_GET
Constants for HTTP request methods
- METHOD_HEAD
- in file Request2.php, class constant HTTP_Request2::METHOD_HEAD
Constants for HTTP request methods
- METHOD_OPTIONS
- in file Request2.php, class constant HTTP_Request2::METHOD_OPTIONS
Constants for HTTP request methods
- METHOD_POST
- in file Request2.php, class constant HTTP_Request2::METHOD_POST
Constants for HTTP request methods
- METHOD_PUT
- in file Request2.php, class constant HTTP_Request2::METHOD_PUT
Constants for HTTP request methods
- METHOD_TRACE
- in file Request2.php, class constant HTTP_Request2::METHOD_TRACE
Constants for HTTP request methods
- MISCONFIGURATION
- in file Exception.php, class constant HTTP_Request2_Exception::MISCONFIGURATION
Request cannot be processed due to errors in PHP configuration
- MISSING_VALUE
- in file Exception.php, class constant HTTP_Request2_Exception::MISSING_VALUE
Some required value was not available
top
top
o
- $observers
- in file Request2.php, variable HTTP_Request2::$observers
Observers attached to the request (instances of SplObserver)
top
p
- $phrases
- in file Response.php, variable HTTP_Request2_Response::$phrases
Associative array of HTTP status code / reason phrase.
- $position
- in file Curl.php, variable HTTP_Request2_Adapter_Curl::$position
Position within request body
- $postParams
- in file Request2.php, variable HTTP_Request2::$postParams
Array of POST parameters
- $proxyChallenge
- in file Socket.php, variable HTTP_Request2_Adapter_Socket::$proxyChallenge
Challenge used for proxy digest authentication
- $psl
- in file CookieJar.php, variable HTTP_Request2_CookieJar::$psl
Array with Public Suffix List data
- parseCookie
- in file Response.php, method HTTP_Request2_Response::parseCookie()
Parses a Set-Cookie header to fill $cookies array
- parseDigestChallenge
- in file Socket.php, method HTTP_Request2_Adapter_Socket::parseDigestChallenge()
Extracts digest method challenge from (WWW|Proxy)-Authenticate header value
- parseHeaderLine
- in file Response.php, method HTTP_Request2_Response::parseHeaderLine()
Parses the line from HTTP response filling $headers array
- performAuthentication
- in file SOCKS5.php, method HTTP_Request2_SOCKS5::performAuthentication()
Performs username/password authentication for SOCKS5
- prepareHeaders
- in file Socket.php, method HTTP_Request2_Adapter_Socket::prepareHeaders()
Creates the string with the Request-Line and request headers
top
r
- $reasonPhrase
- in file Response.php, variable HTTP_Request2_Response::$reasonPhrase
Reason phrase
- $redirectCountdown
- in file Socket.php, variable HTTP_Request2_Adapter_Socket::$redirectCountdown
Remaining amount of redirections to follow
- $request
- in file Adapter.php, variable HTTP_Request2_Adapter::$request
Request being sent
- $requestBody
- in file Adapter.php, variable HTTP_Request2_Adapter::$requestBody
Request body
- $response
- in file Curl.php, variable HTTP_Request2_Adapter_Curl::$response
Response being received
- $responses
- in file Mock.php, variable HTTP_Request2_Adapter_Mock::$responses
A queue of responses to be returned by sendRequest()
- Response.php
- procedural page Response.php
- Request2.php
- procedural page Request2.php
- read
- in file MultipartBody.php, method HTTP_Request2_MultipartBody::read()
Returns next chunk of request body
- read
- in file SocketWrapper.php, method HTTP_Request2_SocketWrapper::read()
Wrapper around fread(), handles global request timeout
- readChunked
- in file Socket.php, method HTTP_Request2_Adapter_Socket::readChunked()
Reads a part of response body encoded with chunked Transfer-Encoding
- readLine
- in file SocketWrapper.php, method HTTP_Request2_SocketWrapper::readLine()
Reads until either the end of the socket or a newline, whichever comes first
- readResponse
- in file Socket.php, method HTTP_Request2_Adapter_Socket::readResponse()
Reads the remote server's response
- READ_ERROR
- in file Exception.php, class constant HTTP_Request2_Exception::READ_ERROR
Error reading the local file
- REGEXP_INVALID_COOKIE
- in file Request2.php, class constant HTTP_Request2::REGEXP_INVALID_COOKIE
Regular expression used to check for invalid symbols in cookie strings
- REGEXP_INVALID_TOKEN
- in file Request2.php, class constant HTTP_Request2::REGEXP_INVALID_TOKEN
Regular expression used to check for invalid symbols in RFC 2616 tokens
- REGEXP_QUOTED_STRING
- in file Socket.php, class constant HTTP_Request2_Adapter_Socket::REGEXP_QUOTED_STRING
Regular expression for 'quoted-string' rule from RFC 2616
- REGEXP_TOKEN
- in file Socket.php, class constant HTTP_Request2_Adapter_Socket::REGEXP_TOKEN
Regular expression for 'token' rule from RFC 2616
- rewind
- in file MultipartBody.php, method HTTP_Request2_MultipartBody::rewind()
Sets the current position to the start of the body
top
s
- $serializeSession
- in file CookieJar.php, variable HTTP_Request2_CookieJar::$serializeSession
Whether session cookies should be serialized when serializing the jar
- $serverChallenge
- in file Socket.php, variable HTTP_Request2_Adapter_Socket::$serverChallenge
Challenge used for server digest authentication
- $socket
- in file Socket.php, variable HTTP_Request2_Adapter_Socket::$socket
Connected socket
- $socket
- in file SocketWrapper.php, variable HTTP_Request2_SocketWrapper::$socket
Connected socket
- $sockets
- in file Socket.php, variable HTTP_Request2_Adapter_Socket::$sockets
Connected sockets, needed for Keep-Alive support
- $sslContextMap
- in file Curl.php, variable HTTP_Request2_Adapter_Curl::$sslContextMap
Mapping of SSL context options to cURL options
- Socket.php
- procedural page Socket.php
- SocketWrapper.php
- procedural page SocketWrapper.php
- SOCKS5.php
- procedural page SOCKS5.php
- send
- in file Request2.php, method HTTP_Request2::send()
Sends the request and returns the response
- sendRequest
- in file Adapter.php, method HTTP_Request2_Adapter::sendRequest()
Sends request to the remote server and returns its response
- sendRequest
- in file Socket.php, method HTTP_Request2_Adapter_Socket::sendRequest()
Sends request to the remote server and returns its response
- sendRequest
- in file Curl.php, method HTTP_Request2_Adapter_Curl::sendRequest()
Sends request to the remote server and returns its response
- sendRequest
- in file Mock.php, method HTTP_Request2_Adapter_Mock::sendRequest()
Returns the next response from the queue built by addResponse()
- serialize
- in file CookieJar.php, method HTTP_Request2_CookieJar::serialize()
Returns string representation of object
- serializeSessionCookies
- in file CookieJar.php, method HTTP_Request2_CookieJar::serializeSessionCookies()
Sets whether session cookies should be serialized when serializing the jar
- setAdapter
- in file Request2.php, method HTTP_Request2::setAdapter()
Sets the adapter used to actually perform the request
- setAuth
- in file Request2.php, method HTTP_Request2::setAuth()
Sets the autentification data
- setBody
- in file Request2.php, method HTTP_Request2::setBody()
Sets the request body
- setConfig
- in file Request2.php, method HTTP_Request2::setConfig()
Sets the configuration parameter(s)
- setCookieJar
- in file Request2.php, method HTTP_Request2::setCookieJar()
Sets the cookie jar
- setDeadline
- in file SocketWrapper.php, method HTTP_Request2_SocketWrapper::setDeadline()
Sets request deadline
- setHeader
- in file Request2.php, method HTTP_Request2::setHeader()
Sets request header(s)
- setLastEvent
- in file Request2.php, method HTTP_Request2::setLastEvent()
Sets the last event
- setMethod
- in file Request2.php, method HTTP_Request2::setMethod()
Sets the request method
- setUrl
- in file Request2.php, method HTTP_Request2::setUrl()
Sets the URL for this request
- shouldUseProxyDigestAuth
- in file Socket.php, method HTTP_Request2_Adapter_Socket::shouldUseProxyDigestAuth()
Checks whether another request should be performed with proxy digest auth
- shouldUseServerDigestAuth
- in file Socket.php, method HTTP_Request2_Adapter_Socket::shouldUseServerDigestAuth()
Checks whether another request should be performed with server digest auth
- store
- in file CookieJar.php, method HTTP_Request2_CookieJar::store()
Stores a cookie in the jar
top
top
top
top
top
Documentation generated on Mon, 11 Mar 2019 15:56:02 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|
|