PHP Class Networkfsockopen

Inheritance: implements iNetwork
Afficher le fichier Open project: zblogcn/zblogphp

Méthodes publiques

Méthode Description
__get ( $property_name ) : mixed
__set ( $property_name, $value )
abort ( )
addBinary ( string $name, string $entity, $filename = null, $mime = '' ) : mixed
addText ( string $name, string $entity ) : mixed
enableGzip ( )
getAllResponseHeaders ( ) : string
getResponseHeader ( $bstrHeader ) : string
open ( $bstrMethod, $bstrUrl, boolean $varAsync = true, string $bstrUser = '', string $bstrPassword = '' ) : boolean
send ( string $varBody = '' ) : mixed | void
setMaxRedirs ( integer $n )
setRequestHeader ( $bstrHeader, $bstrValue, boolean $append = false ) : boolean
setTimeOuts ( $resolveTimeout, $connectTimeout, $sendTimeout, $receiveTimeout )

Private Methods

Méthode Description
__buildBoundary ( ) Build Boundary
__buildPostData ( ) : string
add_postdata ( $bstrItem, $bstrValue )
gzdecode ( $string ) : string
http_chunked_decode ( $chunk ) : null | string
is_hex ( string $hex ) : boolean determine if a string can represent a number in hexadecimal
reinit ( )

Method Details

__get() public méthode

public __get ( $property_name ) : mixed
$property_name
Résultat mixed

__set() public méthode

public __set ( $property_name, $value )
$property_name
$value

abort() public méthode

public abort ( )

addBinary() public méthode

public addBinary ( string $name, string $entity, $filename = null, $mime = '' ) : mixed
$name string
$entity string
Résultat mixed

addText() public méthode

public addText ( string $name, string $entity ) : mixed
$name string
$entity string
Résultat mixed

enableGzip() public méthode

public enableGzip ( )

getAllResponseHeaders() public méthode

public getAllResponseHeaders ( ) : string
Résultat string

getResponseHeader() public méthode

public getResponseHeader ( $bstrHeader ) : string
$bstrHeader
Résultat string

open() public méthode

public open ( $bstrMethod, $bstrUrl, boolean $varAsync = true, string $bstrUser = '', string $bstrPassword = '' ) : boolean
$bstrMethod
$bstrUrl
$varAsync boolean
$bstrUser string
$bstrPassword string
Résultat boolean

send() public méthode

public send ( string $varBody = '' ) : mixed | void
$varBody string
Résultat mixed | void

setMaxRedirs() public méthode

public setMaxRedirs ( integer $n )
$n integer

setRequestHeader() public méthode

public setRequestHeader ( $bstrHeader, $bstrValue, boolean $append = false ) : boolean
$bstrHeader
$bstrValue
$append boolean
Résultat boolean

setTimeOuts() public méthode

public setTimeOuts ( $resolveTimeout, $connectTimeout, $sendTimeout, $receiveTimeout )
$resolveTimeout
$connectTimeout
$sendTimeout
$receiveTimeout