$HTTP_REQUEST_HEADER_REGEX
$HTTP_REQUEST_HEADER_REGEX :string
Static utility methods for scrubbing sensitive information from logs for outgoing requests.
scrubRequestHttpHeaders(string $httpHeaders,array<mixed,string> $headersToScrub): string
Scrubs the specified header values, replacing all occurrences in the specified request HTTP headers with a redacted token.
string | $httpHeaders | |
array<mixed,string> | $headersToScrub | which HTTP headers to scrub |
the HTTP headers with any sensitive info removed
scrubRequestSoapHeaders(string $soapXml,array<mixed,string> $headersToScrub): string
Scrubs the specified header values, replacing their occurrences in the specified request SOAP XML with a redacted token.
string | $soapXml | |
array<mixed,string> | $headersToScrub | which SOAP headers to scrub |
the SOAP XML with any sensitive info removed from its headers
scrubRequestSoapBodyTags(string $soapXml,array<mixed,string> $tagsToScrub): string
Scrubs the values of specified tags, replacing their occurrences in the specified request SOAP XML with a redacted token.
string | $soapXml | |
array<mixed,string> | $tagsToScrub | which SOAP tags to scrub |
the SOAP XML with any sensitive info removed from its headers
scrubHttpHeadersArray(array<mixed,string> $httpHeaders,array<mixed,string> $headersToScrub): array<mixed,string>
Scrubs an array of HTTP headers by replacing their values with a redacted token.
array<mixed,string> | $httpHeaders | |
array<mixed,string> | $headersToScrub | which HTTP headers to scrub |
the list of HTTP headers with any sensitive info removed