\Raven_Processor_SanitizeHttpHeadersProcessor

This processor sanitizes the configured HTTP headers to ensure no sensitive informations are sent to the server.

Summary

Methods
Properties
Constants
__construct()
setProcessorOptions()
process()
No public properties found
STRING_MASK
No protected methods found
$client
N/A
getDefaultHeaders()
$httpHeadersToSanitize
N/A

Constants

STRING_MASK

STRING_MASK = '********'

This constant defines the mask string used to strip sensitive information.

Properties

$client

$client : \Raven_Client

Type

\Raven_Client — The Raven client

$httpHeadersToSanitize

$httpHeadersToSanitize : array<mixed,string>

Type

array<mixed,string> — The list of HTTP headers to sanitize

Methods

__construct()

__construct(\Raven_Client  $client) 

Class constructor.

Parameters

\Raven_Client $client

The Raven client

setProcessorOptions()

setProcessorOptions(array  $options) 

Override the default processor options

Parameters

array $options

Associative array of processor options

process()

process(array  $data) 

Process and sanitize data, modifying the existing value if necessary.

Parameters

array $data

Array of log data

getDefaultHeaders()

getDefaultHeaders() : array<mixed,string>

Gets the list of default headers that must be sanitized.

Returns

array<mixed,string>