HumHub Documentation (unofficial)

AbstractLocation
in package
implements HeaderInterface

AbstractYes

Abstract Location Header Supports headers that have URI as value

Tags
see
Location
see
ContentLocation
see
Referer

Note for 'Location' header: While RFC 1945 requires an absolute URI, most of the browsers also support relative URI This class allows relative URIs, and let user retrieve URI instance if strict validation needed

Table of Contents

Interfaces

HeaderInterface
Interface for HTTP Header classes.

Properties

$uri  : UriInterface
URI for this header

Methods

__toString()  : string
Allow casting to string
fromString()  : static
Create location-based header from string
getFieldValue()  : string
Get header value as URI string
getUri()  : string
Return the URI for this header
setUri()  : $this
Set the URI/URL for this header, this can be a string or an instance of Laminas\Uri\Http
toString()  : string
Output header line
uri()  : UriInterface
Return the URI for this header as an instance of Laminas\Uri\Http

Properties

Methods

__toString()

Allow casting to string

public __toString() : string
Return values
string

fromString()

Create location-based header from string

public static fromString(string $headerLine) : static
Parameters
$headerLine : string
Tags
throws
InvalidArgumentException
Return values
static

getFieldValue()

Get header value as URI string

public getFieldValue() : string
Return values
string

getUri()

Return the URI for this header

public getUri() : string
Return values
string

toString()

Output header line

public toString() : string
Return values
string

        
On this page

Search results