19 lines
365 B
PHP
19 lines
365 B
PHP
<?php
|
|
namespace Qiniu\Http;
|
|
|
|
final class Request
|
|
{
|
|
public $url;
|
|
public $headers;
|
|
public $body;
|
|
public $method;
|
|
|
|
public function __construct($method, $url, array $headers = array(), $body = null)
|
|
{
|
|
$this->method = strtoupper($method);
|
|
$this->url = $url;
|
|
$this->headers = $headers;
|
|
$this->body = $body;
|
|
}
|
|
}
|