Target
in package

Read onlyYes
FinalYes

The target of an HTTP request.

The target is sometimes referred to as the "resource". This "resource" may have one or more representations.

Tags
see
https://datatracker.ietf.org/doc/html/rfc7231#section-2

Table of Contents

Properties

$location  : string
$requestProcessor  : RequestProcessorInterface

Methods

__construct()  : mixed
getRepresentation()  : RepresentationInterface
matchesLocation()  : bool
matchesMethod()  : bool
negotiate()  : HttpResponseCodeEnum

Properties

$location

public string $location

$requestProcessor

public RequestProcessorInterface $requestProcessor

Methods

__construct()

public __construct(string $location, HttpMethodEnum $method, Representations $representations, RequestProcessorInterface $requestProcessor) : mixed
Parameters
$location : string
$method : HttpMethodEnum
$representations : Representations
$requestProcessor : RequestProcessorInterface

getRepresentation()

public getRepresentation(mixed $resource) : RepresentationInterface
Parameters
$resource : mixed
Return values
RepresentationInterface

matchesLocation()

public matchesLocation(string $testLocation) : bool
Parameters
$testLocation : string
Return values
bool

matchesMethod()

public matchesMethod(string $method) : bool
Parameters
$method : string
Return values
bool

negotiate()

public negotiate(ServerRequestInterface $request) : HttpResponseCodeEnum
Parameters
$request : ServerRequestInterface
Return values
HttpResponseCodeEnum

        
On this page

Search results