$options
$options : array
$response : \Qiniu\Response
create(array $options = null) : \Qiniu\Request
Create request
array | $options |
url(string $url = null) : \Qiniu\Request
Set url
string | $url |
header(string|array $key, string $value = null) : \Qiniu\Request
Set headers
string|array | $key | |
string | $value |
form(string|array $key, string $value = null) : \Qiniu\Request
string|array | $key | |
string | $value |
data(string|array $key, string $value = null) : \Qiniu\Request
Alias form
string|array | $key | |
string | $value |
file(string $file, string $filename = null, string $name = 'file') : \Qiniu\Request
Attach file
string | $file | |
string | $filename | |
string | $name |
get(string|array $url = null, array $data = null) : \Qiniu\Response
Get request
string|array | $url | |
array | $data |
post(string|array $url = null, array $data = null) : \Qiniu\Response
Post request
string|array | $url | |
array | $data |
upload(string|array $file, string $name = 'file', array $options = null) : \Qiniu\Response|boolean
Upload files
string|array | $file | |
string | $name | |
array | $options |
put(string|array $url = null, array $data = null) : \Qiniu\Response
Put request
string|array | $url | |
array | $data |
delete(string|array $url = null, null $data = null) : \Qiniu\Response
Delete request
string|array | $url | |
null | $data |
send(string|array $url = null, array $data = null, string $method = null) : \Qiniu\Response|boolean
Send request
string|array | $url | |
array | $data | |
string | $method |