HeaderValue
class HeaderValue implements Stringable
Constants
| protected BASE64_PREFIX |
|
| protected BASE64_SUFFIX |
|
Methods
__construct(string $value)
Create a header value.
static HeaderValue
fromHeader(string $header)
Decode a plain or base64-encoded header.
bool
matches(string $value)
Determine whether the header represents the given value.
string
__toString()
Encode the value for use in an HTTP header.
static bool
isBase64(string $value)
Determine whether the value uses the base64 header envelope.
Details
at line 18
__construct(string $value)
Create a header value.
at line 25
static HeaderValue
fromHeader(string $header)
Decode a plain or base64-encoded header.
at line 43
bool
matches(string $value)
Determine whether the header represents the given value.
at line 51
string
__toString()
Encode the value for use in an HTTP header.
at line 63
static protected bool
isBase64(string $value)
Determine whether the value uses the base64 header envelope.