PHP Class NukeViet\Http\Http

Datei anzeigen Open project: nukeviet/nukeviet

Public Properties

Property Type Description
$error Error message and error code Error code help user to show error message with optional language Error message is default by english.

Public Methods

Method Description
__construct ( mixed $config, string $tmp_dir = 'tmp' )
_get_first_available_transport ( mixed $args, mixed $url = null )
buildCookieHeader ( mixed &$args )
build_args ( mixed $args, mixed $defaults )
get ( mixed $url, mixed $args = [] )
handle_redirects ( mixed $url, mixed $args, mixed $response )
head ( mixed $url, mixed $args = [] )
is_error ( mixed $resources )
is_ip_address ( mixed $maybe_ip )
make_absolute_url ( mixed $maybe_relative_path, mixed $url )
mbstring_binary_safe_encoding ( boolean $reset = false )
post ( mixed $url, mixed $args = [] )
processHeaders ( mixed $headers, string $url = '' )
processResponse ( mixed $strResponse )
reset ( )
reset_mbstring_encoding ( )
set_error ( mixed $code )

Private Methods

Method Description
_dispatch_request ( mixed $url, mixed $args )
get_Env ( mixed $key )
parse_str ( mixed $str )
request ( mixed $url, mixed $args )

Method Details

__construct() public method

public __construct ( mixed $config, string $tmp_dir = 'tmp' )
$config mixed
$tmp_dir string

_get_first_available_transport() public method

public _get_first_available_transport ( mixed $args, mixed $url = null )
$args mixed
$url mixed

buildCookieHeader() public static method

public static buildCookieHeader ( mixed &$args )
$args mixed

build_args() public static method

public static build_args ( mixed $args, mixed $defaults )
$args mixed
$defaults mixed

get() public method

public get ( mixed $url, mixed $args = [] )
$url mixed
$args mixed

handle_redirects() public static method

public static handle_redirects ( mixed $url, mixed $args, mixed $response )
$url mixed
$args mixed
$response mixed

head() public method

public head ( mixed $url, mixed $args = [] )
$url mixed
$args mixed

is_error() public method

public is_error ( mixed $resources )
$resources mixed

is_ip_address() public static method

public static is_ip_address ( mixed $maybe_ip )
$maybe_ip mixed

make_absolute_url() public static method

public static make_absolute_url ( mixed $maybe_relative_path, mixed $url )
$maybe_relative_path mixed
$url mixed

mbstring_binary_safe_encoding() public static method

public static mbstring_binary_safe_encoding ( boolean $reset = false )
$reset boolean

post() public method

public post ( mixed $url, mixed $args = [] )
$url mixed
$args mixed

processHeaders() public static method

public static processHeaders ( mixed $headers, string $url = '' )
$headers mixed
$url string

processResponse() public static method

public static processResponse ( mixed $strResponse )
$strResponse mixed

reset() public method

public reset ( )

reset_mbstring_encoding() public static method

public static reset_mbstring_encoding ( )

set_error() public static method

public static set_error ( mixed $code )
$code mixed

Property Details

$error public_oe static_oe property

Error message and error code Error code help user to show error message with optional language Error message is default by english.
public static $error