HttpServiceInterface
in
Interface HttpServiceInterface
Tags
Table of Contents
- __construct() : mixed
- Initializes the http service.
- getHttpContext() : HttpContextInterface
- Returns an instance of an http context object.
- handle() : mixed
- Handles the current http request by the given context.
Methods
__construct()
Initializes the http service.
public
__construct(AbstractHttpContextFactory $httpContextFactory, HttpDispatcherInterface $httpDispatcher) : mixed
Parameters
- $httpContextFactory : AbstractHttpContextFactory
-
Factory instance to create the http context objects.
- $httpDispatcher : HttpDispatcherInterface
-
Dispatcher instance to process the http response object.
Return values
mixed —getHttpContext()
Returns an instance of an http context object.
public
getHttpContext() : HttpContextInterface
Return values
HttpContextInterface —Context object which holds information about the current request.
handle()
Handles the current http request by the given context.
public
handle(HttpContextInterface $httpContext) : mixed
Parameters
- $httpContext : HttpContextInterface
-
Context object which holds information about the current request.