Documentation

Network
in

网络 Network

Table of Contents

$_header
$_params
$_userAgent
$_reference
$_certPath
$_keyPath
$_useCert
__construct() mixed
setReference() mixed
setUserAgent() mixed
setHeader() mixed
getHeaderParamKey() mixed
getAllHeaderParams() mixed
getHeaderParam() mixed
setParams() mixed
get() mixed
post() mixed
put() mixed
delete() mixed
useCert() mixed
_request() mixed

Properties

$_header

private mixed $_header = []

$_params

private mixed $_params = []

$_userAgent

private mixed $_userAgent = ''

$_reference

private mixed $_reference = ''

$_certPath

private mixed $_certPath = ''

$_keyPath

private mixed $_keyPath = ''

$_useCert

private mixed $_useCert = false

Methods

__construct()

public __construct( ) : mixed
Return values
mixed

setReference()

public setReference( $url : mixed ) : mixed
Parameters
$url : mixed
Return values
mixed

setUserAgent()

public setUserAgent( $ua : mixed ) : mixed
Parameters
$ua : mixed
Return values
mixed

setHeader()

public setHeader( $name : mixed [, $value : mixed = '' ] ) : mixed
Parameters
$name : mixed
$value : mixed = ''
Return values
mixed

getHeaderParamKey()

public getHeaderParamKey( $key : mixed ) : mixed
Parameters
$key : mixed
Return values
mixed

getAllHeaderParams()

public static getAllHeaderParams( ) : mixed
Return values
mixed

getHeaderParam()

public static getHeaderParam( $key : mixed ) : mixed
Parameters
$key : mixed
Return values
mixed

setParams()

public setParams( $name : mixed [, $value : mixed = null ] ) : mixed
Parameters
$name : mixed
$value : mixed = null
Return values
mixed

get()

public get( $url : mixed [, $params : mixed = [] ] [, $encode : mixed = false ] ) : mixed
Parameters
$url : mixed
$params : mixed = []
$encode : mixed = false
Return values
mixed

post()

public post( $url : mixed [, $params : mixed = [] ] ) : mixed
Parameters
$url : mixed
$params : mixed = []
Return values
mixed

put()

public put( $url : mixed [, $params : mixed = [] ] ) : mixed
Parameters
$url : mixed
$params : mixed = []
Return values
mixed

delete()

public delete( $url : mixed [, $params : mixed = [] ] ) : mixed
Parameters
$url : mixed
$params : mixed = []
Return values
mixed

useCert()

public useCert( $certPath : mixed , $keyPath : mixed ) : mixed
Parameters
$certPath : mixed
$keyPath : mixed
Return values
mixed

_request()

private _request( $method : mixed , $url : mixed [, $encode : mixed = false ] ) : mixed
Parameters
$method : mixed
$url : mixed
$encode : mixed = false
Return values
mixed

Search results