Method |
Description |
|
__construct ( string $path, string $method = self::GET, array $data = [], array $query = [], Connection $connection = null ) : Request |
Construct. |
|
__toString ( ) : string |
|
|
getConnection ( ) : Connection |
Return Connection Object. |
|
getData ( ) : array |
Return request data. |
|
getMethod ( ) : string |
Get request method. |
|
getPath ( ) : string |
Return request path. |
|
getQuery ( ) : array |
Return query params. |
|
send ( ) : Response |
Sends request to server. |
|
setConnection ( Connection $connection ) |
|
|
setData ( array $data ) |
Sets the request data. |
|
setMethod ( string $method ) |
Sets the request method. Use one of the for consts. |
|
setPath ( string $path ) |
Sets the request path. |
|
setQuery ( array $query = [] ) |
|
|
toArray ( ) : array |
|
|
toString ( ) : string |
Converts request to curl request format. |
|