Interface IBridgeInterface
Interface IBridgeInterface
Methods summary
public
string
|
#
getPathBase( )
Returns the root path from which this request is executed.
Returns the root path from which this request is executed.
Suppose that an index.php file instantiates this request object:
Returns
string
|
public
string
|
#
getPathInfo( )
Returns the path being requested relative to the executed script.
Returns the path being requested relative to the executed script.
The path info always starts with a /.
Suppose this request is instantiated from /mysite on localhost:
Returns
string
|
public
string
|
#
getUrlBase( )
Returns the root URL from which this request is executed.
Returns the root URL from which this request is executed.
The base URL never ends with a /.
This is similar to getPathBase(), except that it also includes the script
filename (e.g. index.php) if one exists.
Returns
string
|
public
string
|
#
getUrl( )
Returns the requested URI.
Returns the requested URI.
Returns
string
|
public
integer
|
#
getPort( )
Returns the port on which the request is made.
Returns the port on which the request is made.
This method can read the client port from the "X-Forwarded-Port" header, when
trusted proxies were set via "setTrustedProxies()".
The "X-Forwarded-Port" header must contain the client port.
If your reverse proxy uses a different header name than "X-Forwarded-Port",
configure it via "setTrustedHeaderName()" with the "client-port" key.
Returns
integer
|
public
array
|
|
public
string
|
#
getHost( )
Returns the host name.
This method can read the client port from the "X-Forwarded-Host" header when
trusted proxies were set via "setTrustedProxies()".
The "X-Forwarded-Host" header must contain the client host name.
If your reverse proxy uses a different header name than "X-Forwarded-Host",
configure it via "setTrustedHeaderName()" with the "client-host" key.
Returns
string
|