HttpServiceInterface

Extends

Interface HttpServiceInterface

category

System

package

Http

subpackage

Interfaces

Methods

Initializes the http service.

__construct(\AbstractHttpContextFactory $httpContextFactory, \HttpDispatcherInterface $httpDispatcher) 

Arguments

$httpContextFactory

\AbstractHttpContextFactory

Factory instance to create the http context objects.

$httpDispatcher

\HttpDispatcherInterface

Dispatcher instance to process the http response object.

Returns an instance of an http context object.

getHttpContext() : \HttpContextInterface

Response

\HttpContextInterface

Context object which holds information about the current request.

Handles the current http request by the given context.

handle(\HttpContextInterface $httpContext) 

Arguments

$httpContext

\HttpContextInterface

Context object which holds information about the current request.