프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$defaults | configuration |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$headers | all received headers | ||
$options | all options for the request | ||
$response | store for the response object |
메소드 | 설명 | |
---|---|---|
__construct ( string $url, array $options = [] ) | Constructor | |
delete ( string $url, array $params = [] ) : object | Static method to send a DELETE request | |
get ( string $url, array $params = [] ) : object | Static method to send a GET request | |
head ( string $url, array $params = [] ) : object | Static method to send a HEAD request | |
headers ( string $url, array $params = [] ) : array | Static method to send a HEAD request which only returns an array of headers | |
options ( ) : array | Returns all options which have been set for the current request | |
post ( string $url, array $params = [] ) : object | Static method to send a POST request | |
put ( string $url, array $params = [] ) : object | Static method to send a PUT request | |
request ( string $url, array $params = [] ) : object | Static method to init this class and send a request | |
response ( ) : object | Returns the response object for the current request |
메소드 | 설명 | |
---|---|---|
header ( object $curl, string $header ) : integer | Used by curl to parse incoming headers | |
postfields ( mixed $data ) : mixed | Internal method to handle post field data | |
send ( ) : object | Sets up all curl options and sends the request |
public __construct ( string $url, array $options = [] ) | ||
$url | string | |
$options | array |
protected postfields ( mixed $data ) : mixed | ||
$data | mixed | |
리턴 | mixed |