Interface HttpEnvironmentApi
This enumerated api interface defines the http runtime environment.
Enumerated Api Interfaces Enumerated Api Interfaces provide sets of fixed, enumerated values that must maintain consistency, and should not be overridden at compile time.
In some cases, these values are considered absolute, and the program will always reference them as defined. In other cases, they provide baseline definitions, which the individual api implementing them may allow for extension upon. In these cases, the fixed values MAY NOT be removed or altered, but additions and aliases will be allowed for. Check the api of the individual contract being considered for extension for information
how to accomplish this as it applies.
- oroboros\core\interfaces\enumerated\environment\HttpEnvironmentApi implements oroboros\core\interfaces\enumerated\BaseEnumerated
Direct known implementers
oroboros\core\interfaces\enumerated\environment\EnvironmentApi
Package: oroboros\core\environment
Category: enumerated-interfaces
License: The MIT License (MIT)
Author: Brian Dayhoff mopsyd@me.com
Version: 0.2.4-alpha
Since: 0.2.4-alpha
Link: bitbucket.org/oroborosframework/oroboros-core/wiki/development/api/enumerated_api_interface.md
Located at core/interfaces/enumerated/environment/HttpEnvironmentApi.php
Constants summary
|
IS_HTTP
Defines if the current request is http based. This value cannot be overridden. Doing so will cause the system to reference cli resources that are not available, and cause errors during http sessions. |
#
OROBOROS_IS_HTTP
|
|
IS_SSL
Defines if the current request is SSL. This value may be overridden. define('OROBOROS_IS_SSL', true); // or false |
#
OROBOROS_IS_SSL
|
|
IS_AJAX
Defines if the current request is an AJAX call. This value may be overridden. define('OROBOROS_IS_AJAX', true); //or false |
#
OROBOROS_IS_AJAX
|
|
REQUEST_URL
Defines the current host url. This value may be overridden. define('OROBOROS_URL', 'http://example.com'); |
#
OROBOROS_URL
|
|
REQUEST_URI
Defines the current request uri. This value can be overridden. define('OROBOROS_PAGE', 'http://example.com/some-page/'); |
#
OROBOROS_PAGE
|
|
REQUEST_METHOD
Defines the current request method. This value can be overridden. |
#
OROBOROS_REQUEST_METHOD
|