HTTP_Request2
[ class tree: HTTP_Request2 ] [ index: HTTP_Request2 ] [ all elements ]

Element index for package HTTP_Request2

[ a ] [ b ] [ c ] [ d ] [ e ] [ g ] [ h ] [ l ] [ m ] [ n ] [ o ] [ p ] [ r ] [ s ] [ u ] [ v ] [ w ] [ _ ]

_

__construct
in file Request2.php, method HTTP_Request2::__construct()
    Constructor. Can set request URL, method and configuration array.
__construct
in file MultipartBody.php, method HTTP_Request2_MultipartBody::__construct()
    Constructor. Sets the arrays with POST data.
__construct
in file Response.php, method HTTP_Request2_Response::__construct()
    Constructor, parses the response status line
__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
addCookie
in file Request2.php, method HTTP_Request2::addCookie()
    Appends a cookie to "Cookie:" header
addPostParameter
in file Request2.php, method HTTP_Request2::addPostParameter()
    Adds POST parameter(s) to the request.
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

b

$body
in file Response.php, variable HTTP_Request2_Response::$body
    Response body
$body
in file Request2.php, variable HTTP_Request2::$body
    Request body
$bodyDisallowed
in file Adapter.php, variable HTTP_Request2_Adapter::$bodyDisallowed
    A list of methods that MUST NOT have a request body, per RFC 2616
$bodyEncoded
in file Response.php, variable HTTP_Request2_Response::$bodyEncoded
    Whether the body is still encoded by Content-Encoding
$bodyRequired
in file Adapter.php, variable HTTP_Request2_Adapter::$bodyRequired
    Methods having defined semantics for request body
top

c

$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
$contentLength
in file Adapter.php, variable HTTP_Request2_Adapter::$contentLength
    Length of the request body
$cookies
in file Response.php, variable HTTP_Request2_Response::$cookies
    Cookies set in the response
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
connect
in file Socket.php, method HTTP_Request2_Adapter_Socket::connect()
    Connects to the remote server
createAuthHeader
in file Socket.php, method HTTP_Request2_Adapter_Socket::createAuthHeader()
    Creates the value for '[Proxy-]Authorization:' header
createCurlHandle
in file Curl.php, method HTTP_Request2_Adapter_Curl::createCurlHandle()
    Creates a new cURL handle and populates it with data from the request
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
top

d

decodeDeflate
in file Response.php, method HTTP_Request2_Response::decodeDeflate()
    Decodes the message-body encoded by deflate
decodeGzip
in file Response.php, method HTTP_Request2_Response::decodeGzip()
    Decodes the message-body encoded by gzip
detach
in file Request2.php, method HTTP_Request2::detach()
    Detaches an existing observer
detectMimeType
in file Request2.php, method HTTP_Request2::detectMimeType()
    Tries to detect MIME type of a file
disconnect
in file Socket.php, method HTTP_Request2_Adapter_Socket::disconnect()
    Disconnects from the remote server
top

e

Exception.php
procedural page Exception.php
top

g

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
getConfigValue
in file Request2.php, method HTTP_Request2::getConfigValue()
    Returns the value of the configuration parameter
getCookies
in file Response.php, method HTTP_Request2_Response::getCookies()
    Returns cookies set in 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
getMethod
in file Request2.php, method HTTP_Request2::getMethod()
    Returns the request method
getReasonPhrase
in file Response.php, method HTTP_Request2_Response::getReasonPhrase()
    Returns the reason phrase
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 Response.php, variable HTTP_Request2_Response::$headers
    Associative array of response headers
$headers
in file Request2.php, variable HTTP_Request2::$headers
    Request headers
HTTP_Request2
in file Request2.php, class HTTP_Request2
    Class representing a HTTP request
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_Exception
in file Exception.php, class HTTP_Request2_Exception
    Exception class for HTTP_Request2 package
HTTP_Request2_MultipartBody
in file MultipartBody.php, class HTTP_Request2_MultipartBody
    Class for building multipart/form-data request body
HTTP_Request2_Response
in file Response.php, class HTTP_Request2_Response
    Class representing a HTTP response
top

l

$lastEvent
in file Request2.php, variable HTTP_Request2::$lastEvent
    Last event in request / response handling, intended for observers
$lastHeader
in file Response.php, variable HTTP_Request2_Response::$lastHeader
    Name of last header processed by parseHederLine()
$lastInfo
in file Curl.php, variable HTTP_Request2_Adapter_Curl::$lastInfo
    Information about last transfer, as returned by curl_getinfo()
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
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
top

n

notify
in file Request2.php, method HTTP_Request2::notify()
    Notifies all observers
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
parseCookie
in file Response.php, method HTTP_Request2_Response::parseCookie()
    Parses a Set-Cookie header to fill $cookies array
parseHeaderLine
in file Response.php, method HTTP_Request2_Response::parseHeaderLine()
    Parses the line from HTTP response filling $headers array
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
$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
$requestHeaders
in file Curl.php, variable HTTP_Request2_Adapter_Curl::$requestHeaders
    Request headers, needed only for notifying the observers
$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
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 Socket.php, method HTTP_Request2_Adapter_Socket::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
rewind
in file MultipartBody.php, method HTTP_Request2_MultipartBody::rewind()
    Sets the current position to the start of the body
top

s

$socket
in file Socket.php, variable HTTP_Request2_Adapter_Socket::$socket
    Connected socket
$sockets
in file Socket.php, variable HTTP_Request2_Adapter_Socket::$sockets
    Connected sockets, needed for Keep-Alive support
Socket.php
procedural page Socket.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 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()
sendRequest
in file Socket.php, method HTTP_Request2_Adapter_Socket::sendRequest()
    Sends request to the remote server and returns its response
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 parameters
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
top

u

$uploads
in file Request2.php, variable HTTP_Request2::$uploads
    Array of file uploads (for multipart/form-data POST requests)
$url
in file Request2.php, variable HTTP_Request2::$url
    Request URL
top

v

$version
in file Response.php, variable HTTP_Request2_Response::$version
    HTTP protocol version (e.g. 1.0, 1.1)
top

w

writeBody
in file Socket.php, method HTTP_Request2_Adapter_Socket::writeBody()
    Sends the request body
top

Documentation generated on Mon, 11 Mar 2019 15:26:15 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.