src/Component/Collection.php
public function setHttp(ServerRequestInterface $request, ResponseInterface $response)
    {
        $this->set('Psr\Http\Message\ServerRequestInterface', $request);

        return $this->set('Psr\Http\Message\ResponseInterface', $response);
    }
public function setHttp(ServerRequestInterface $request, ResponseInterface $response)
    {
        $this->set('Psr\Http\Message\ServerRequestInterface', $request);

        return $this->set('Psr\Http\Message\ResponseInterface', $response);
    }
Sets the HTTP components.

@param  \Psr\Http\Message\ServerRequestInterface $request
@param  \Psr\Http\Message\ResponseInterface      $response
@return self