コード例 #1
0
ファイル: Http.php プロジェクト: Baft/Zend-Form
 /**
  * Parse a URI string
  *
  * @param  string $uri
  * @return Http
  */
 public function parse($uri)
 {
     parent::parse($uri);
     if (empty($this->path)) {
         $this->path = '/';
     }
     return $this;
 }
コード例 #2
0
ファイル: HttpRequest.php プロジェクト: koolkode/async-http
 public function __construct($uri, string $method = Http::GET, array $headers = [], string $protocolVersion = '1.1')
 {
     parent::__construct($headers, $protocolVersion);
     $this->method = $this->filterMethod($method);
     $this->uri = Uri::parse($uri);
 }