Bitrix API

Handler extends Handler

Table of Contents

Methods

__construct()  : mixed
__destruct()  : mixed
getDebugLevel()  : int
Returns the current level.
getHandle()  : CurlHandle
getLogger()  : LoggerInterface|null
Returns the logger from the configuration settings.
getRequest()  : RequestInterface
getResponse()  : Response|null
log()  : void
setDebugLevel()  : mixed
Sets debug level using HttpDebug::* constants.
shouldFetchBody()  : void
Sets a callback called before fetching a message body.

Methods

__construct()

public __construct(RequestInterface $request, ResponseBuilderInterface $responseBuilder[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
$request : RequestInterface
$responseBuilder : ResponseBuilderInterface
$options : array<string|int, mixed> = []

__destruct()

public __destruct() : mixed

getDebugLevel()

Returns the current level.

public getDebugLevel() : int
Return values
int

HttpDebug::* constants

getHandle()

public getHandle() : CurlHandle
Return values
CurlHandle

getLogger()

Returns the logger from the configuration settings.

public getLogger() : LoggerInterface|null
Return values
LoggerInterface|null

getRequest()

public getRequest() : RequestInterface
Return values
RequestInterface

log()

public log(string $logMessage, int $level) : void
Parameters
$logMessage : string
$level : int

setDebugLevel()

Sets debug level using HttpDebug::* constants.

public setDebugLevel(int $debugLevel) : mixed
Parameters
$debugLevel : int

shouldFetchBody()

Sets a callback called before fetching a message body.

public shouldFetchBody(callable $callback) : void
Parameters
$callback : callable

        
On this page

Search results