Nexus API Reference

HeaderTokenExtractor
in package
implements TokenExtractor

Read onlyYes
FinalYes
Tags
psalm-api

Reads the raw value of a configurable header. Useful for X-Api-Key / X-Auth-Token style schemes where there's no scheme prefix.

Table of Contents

Interfaces

TokenExtractor

Methods

__construct()  : mixed
extract()  : string|null

Methods

__construct()

public __construct(string $headerName) : mixed
Parameters
$headerName : string

extract()

public extract(ServerRequestInterface $request) : string|null
Parameters
$request : ServerRequestInterface
Return values
string|null

        
On this page

Search results