Robbie\Psr7\HttpRequestAdapter
Synopsis
class HttpRequestAdapter
extends AbstractHttpAdapter
{
- // members
- protected $serverVars;
- // Inherited members from AbstractHttpAdapter
- protected $protocolVersion;
- // methods
- public void __construct()
- public void toPsr7()
- public void fromPsr7()
- public string getUri()
- public array getServerVars()
- public $this setServerVars()
- // Inherited methods from AbstractHttpAdapter
- public abstract MessageInterface toPsr7()
- public abstract HTTPRequest|HTTPResponse fromPsr7()
- public void importHeaders()
- public string getProtocolVersion()
- public $this setProtocolVersion()
Hierarchy
Extends
Members
protected
- $protocolVersion — string
- $serverVars — array
Methods
public
- __construct() — Set up the server vars - they can be overridden if required
- fromPsr7() — {@inheritDoc}
- getServerVars()
- getUri() — Get the full request URI (can be empty, but probably won't be)
- setServerVars()
- toPsr7() — {@inheritDoc}
Inherited from Robbie\Psr7\AbstractHttpAdapter
public
- fromPsr7() — Perform a conversion from a PSR-7 interface to the corresponding HTTPRequest or HTTPResponse class
- getProtocolVersion() — Get the protocol version - either from a previously set value, or from the server
- importHeaders() — PSR-7 interfaces support multiple headers per type, whereas SilverStripe classes do not.
- setProtocolVersion() — Set the protocol version
- toPsr7() — Perform a conversion from a HTTPResponse or HTTPRequest into the corresponding PSR-7 interface