Request.php 365 B

123456789101112131415161718
  1. <?php
  2. namespace Qiniu\Http;
  3. final class Request
  4. {
  5. public $url;
  6. public $headers;
  7. public $body;
  8. public $method;
  9. public function __construct($method, $url, array $headers = array(), $body = null)
  10. {
  11. $this->method = strtoupper($method);
  12. $this->url = $url;
  13. $this->headers = $headers;
  14. $this->body = $body;
  15. }
  16. }