HTTPTable of Contents
The HttpDeflateStream classClass synopsisHttpDeflateStream
class HttpDeflateStream
{
public
__construct
([ int
$flags = 0
] )
static public
HttpDeflateStream
factory
([ int
$flags = 0
[, string $class_name = "HttpDeflateStream"
]] )
public
string finish
([ string
$data
] )
public
string flush
([ string
$data
] )
public
string update
( string
}$data
)Class MembersPredefined Constants
Examples
Example #1 A HttpDeflateStream example
<?php The HttpInflateStream classClass synopsisHttpInflateStream
class HttpInflateStream
{
public
__construct
([ int
$flags = 0
] )
public
HttpInflateStream
factory
([ int
$flags = 0
[, string $class_name = "HttpInflateStream"
]] )
public
string finish
([ string
$data
] )
public
string flush
([ string
$data
] )
public
string update
( string
}$data
)Class MembersConstants
Examples
Example #1 A HttpInflateStream example
<?php The HttpMessage classClass synopsisHttpMessage
class HttpMessage
implements
Iterator
,
Countable
,
Serializable
{
public
void addHeaders
( array
$headers
[, bool $append = false
] )
public
__construct
([ string
$message
] )
public
HttpMessage detach
( void
)
static public
HttpMessage factory
([ string
$raw_message
[, string $class_name = "HttpMessage"
]] )
static public
HttpMessage fromEnv
( int
$message_type
[, string $class_name = "HttpMessage"
] )
static public
HttpMessage fromString
([ string
$raw_message
[, string $class_name = "HttpMessage"
]] )
public
string getBody
( void
)
public
string getHeader
( string
$header
)
public
array getHeaders
( void
)
public
string getHttpVersion
( void
)
public
HttpMessage getParentMessage
( void
)
public
string getRequestMethod
( void
)
public
string getRequestUrl
( void
)
public
int getResponseCode
( void
)
public
string getResponseStatus
( void
)
public
int getType
( void
)
public
string guessContentType
( string
$magic_file
[, int $magic_mode = MAGIC_MIME
] )
public
void prepend
( HttpMessage
$message
[, bool $top = true
] )
public
HttpMessage reverse
( void
)
public
bool send
( void
)
public
void setBody
( string
$body
)
public
void setHeaders
( array
$headers
)
public
bool setHttpVersion
( string
$version
)
public
bool setRequestMethod
( string
$method
)
public
bool setRequestUrl
( string
$url
)
public
bool setResponseCode
( int
$code
)
public
bool setResponseStatus
( string
$status
)
public
void setType
( int
$type
)
public
HttpRequest|HttpResponse toMessageTypeObject
( void
)
public
string toString
([ bool
}$include_parent = false
] )Class MembersProperties
Predefined Constants
The HttpQueryString classClass synopsisHttpQueryString
class HttpQueryString
implements
ArrayAccess
,
Serializable
{
final public
__construct
([ bool
$global = true
[, mixed $add
]] )
public
mixed get
([ string
$key
[, mixed $type = 0
[, mixed $defval = NULL
[, bool $delete = false
]]]] )
public
HttpQueryString mod
( mixed
$params
)
public
string set
( mixed
$params
)
static public
HttpQueryString singleton
([ bool
$global = true
] )
public
array toArray
( void
)
public
string toString
( void
)
public
bool xlate
( string
}$ie
, string $oe
)Class MembersProperties
Predefined Constants
The HttpRequestClass synopsisHttpRequest
class HttpRequest
{
public
bool addCookies
( array
$cookies
)
public
bool addHeaders
( array
$headers
)
public
bool addPostFields
( array
$post_data
)
public
bool addPostFile
( string
$name
, string $file
[, string $content_type = "application/x-octetstream"
] )
public
bool addPutData
( string
$put_data
)
public
bool addQueryData
( array
$query_params
)
public
bool addRawPostData
( string
$raw_post_data
)
public
bool addSslOptions
( array
$options
)
public
void clearHistory
( void
)
public
__construct
([ string
$url
[, int $request_method = HTTP_METH_GET
[, array $options
]]] )
public
bool enableCookies
( void
)
public
string getContentType
( void
)
public
array getCookies
( void
)
public
array getHeaders
( void
)
public
HttpMessage getHistory
( void
)
public
int getMethod
( void
)
public
array getOptions
( void
)
public
array getPostFields
( void
)
public
array getPostFiles
( void
)
public
string getPutData
( void
)
public
string getPutFile
( void
)
public
string getQueryData
( void
)
public
string getRawPostData
( void
)
public
string getRawRequestMessage
( void
)
public
string getRawResponseMessage
( void
)
public
HttpMessage getRequestMessage
( void
)
public
string getResponseBody
( void
)
public
int getResponseCode
( void
)
public
array getResponseCookies
([ int
$flags = 0
[, array $allowed_extras
]] )
public
array getResponseData
( void
)
public
mixed getResponseHeader
([ string
$name
] )
public
mixed getResponseInfo
([ string
$name
] )
public
HttpMessage getResponseMessage
( void
)
public
string getResponseStatus
( void
)
public
array getSslOptions
( void
)
public
string getUrl
( void
)
public
bool resetCookies
([ bool
$session_only = false
] )
public
HttpMessage send
( void
)
bool setBody
([ string
$request_body_data
] )
public
bool setContentType
( string
$content_type
)
public
bool setCookies
([ array
$cookies
] )
public
bool setHeaders
([ array
$headers
] )
public
bool setMethod
( int
$request_method
)
public
bool setOptions
([ array
$options
] )
public
bool setPostFields
( array
$post_data
)
public
bool setPostFiles
( array
$post_files
)
public
bool setPutData
([ string
$put_data
] )
public
bool setPutFile
([ string
$file = ""
] )
public
bool setQueryData
( mixed
$query_data
)
public
bool setRawPostData
([ string
$raw_post_data
] )
public
bool setSslOptions
([ array
$options
] )
public
bool setUrl
( string
}$url
)Class MembersProperties
Predefined Constants
The HttpRequestPool classClass synopsisHttpRequestPool
class HttpRequestPool
implements
Iterator
,
Countable
{
public
bool attach
( HttpRequest
$request
)
public __construct
([ HttpRequest
$request
[, HttpRequest $...
]] )
void __destruct
( void
)
bool detach
( HttpRequest
$request
)
array getAttachedRequests
( void
)
array getFinishedRequests
( void
)
void reset
( void
)
bool send
( void
)
protected
bool socketPerform
( void
)
protected
bool socketSelect
([ float
}$timeout = 0
] )Class MembersPropertiesThe HttpRequestPool class does not have any properties. Predefined ConstantsThe HttpRequestPool class does not have any constants. The HttpResponseClass synopsisHttpResponse
class HttpResponse
{
static
void capture
( void
)
static
int getBufferSize
( void
)
static
bool getCache
( void
)
static
string getCacheControl
( void
)
static
string getContentDisposition
( void
)
static
string getContentType
( void
)
static
string getData
( void
)
static
string getETag
( void
)
static
string getFile
( void
)
static
bool getGzip
( void
)
static
mixed getHeader
([ string
$name
] )
static
int getLastModified
( void
)
static
string getRequestBody
( void
)
static
resource getRequestBodyStream
( void
)
static
array getRequestHeaders
( void
)
static
resource getStream
( void
)
static
float getThrottleDelay
( void
)
static
string guessContentType
( string
$magic_file
[, int $magic_mode = MAGIC_MIME
] )
static
void redirect
([ string
$url
[, array $params
[, bool $session = false
[, int $status
]]]] )
static
bool send
([ bool
$clean_ob = true
] )
static
bool setBufferSize
( int
$bytes
)
static
bool setCache
( bool
$cache
)
static
bool setCacheControl
( string
$control
[, int $max_age = 0
[, bool $must_revalidate = true
]] )
static
bool setContentDisposition
( string
$filename
[, bool $inline = false
] )
static
bool setContentType
( string
$content_type
)
static
bool setData
( mixed
$data
)
static
bool setETag
( string
$etag
)
static
bool setFile
( string
$file
)
static
bool setGzip
( bool
$gzip
)
static
bool setHeader
( string
$name
[, mixed $value
[, bool $replace = true
]] )
static
bool setLastModified
( int
$timestamp
)
static
bool setStream
( resource
$stream
)
static
bool setThrottleDelay
( float
$seconds
)
static
bool status
( int
}$status
)Class MembersProperties
Predefined Constants
|