PhlyTest\Http\Request\SerializerTest::absoluteForms PHP Method

absoluteForms() public method

public absoluteForms ( )
    public function absoluteForms()
    {
        return ['path-only' => ['GET http://example.com/foo HTTP/1.1', 'http://example.com/foo', ['getScheme' => 'http', 'getHost' => 'example.com', 'getPath' => '/foo']], 'path-and-query' => ['GET http://example.com/foo?bar HTTP/1.1', 'http://example.com/foo?bar', ['getScheme' => 'http', 'getHost' => 'example.com', 'getPath' => '/foo', 'getQuery' => 'bar']], 'with-port' => ['GET http://example.com:8080/foo?bar HTTP/1.1', 'http://example.com:8080/foo?bar', ['getScheme' => 'http', 'getHost' => 'example.com', 'getPort' => 8080, 'getPath' => '/foo', 'getQuery' => 'bar']], 'with-authority' => ['GET https://me:[email protected]:8080/foo?bar HTTP/1.1', 'https://me:[email protected]:8080/foo?bar', ['getScheme' => 'https', 'getUserInfo' => 'me:too', 'getHost' => 'example.com', 'getPort' => 8080, 'getPath' => '/foo', 'getQuery' => 'bar']]];
    }