\fastHttp

字符串类

Summary

Methods
Properties
Constants
post()
get()
sendRequest()
sendAsyncRequest()
sendToBrowser()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

post()

post(  $url,   $params = array(),   $options = array()) 

发送一个POST请求

Parameters

$url
$params
$options

get()

get(  $url,   $params = array(),   $options = array()) 

发送一个GET请求

Parameters

$url
$params
$options

sendRequest()

sendRequest(string  $url, mixed  $params = array(), string  $method = 'POST', mixed  $options = array()) : array

CURL发送Request请求,含POST和REQUEST

Parameters

string $url

请求的链接

mixed $params

传递的参数

string $method

请求的方法

mixed $options

CURL的参数

Returns

array

sendAsyncRequest()

sendAsyncRequest(string  $url, mixed  $params = array(), string  $method = 'POST') : boolean

异步发送一个请求

Parameters

string $url

请求的链接

mixed $params

请求的参数

string $method

请求的方法

Returns

boolean —

TRUE

sendToBrowser()

sendToBrowser(string  $file, boolean  $delaftersend = true, boolean  $exitaftersend = true) 

发送文件到客户端

Parameters

string $file
boolean $delaftersend
boolean $exitaftersend