\JCORE\TRANSPORT\HTTPHTTP_API

Class HTTP_API

Summary

Methods
Properties
Constants
__construct()
request()
No public properties found
No constants found
parseRequest()
compileResponse()
$requestHeaders
$raw_data
$parsedData
N/A
No private methods found
No private properties found
N/A

Properties

$requestHeaders

$requestHeaders : mixed

[hostname][API-dir]?[serviceObjectName]=[serviceObjectMessage] the request headers requestHeaders

Type

mixed

$raw_data

$raw_data : string

the request raw_data

Type

string

$parsedData

$parsedData : string

the request parsedData

Type

string

Methods

__construct()

__construct() : \JCORE\TRANSPORT\HTTP\return

DESCRIPTOR: will parse the $_SERVER["REQUEST_METHOD"] and set the raw data from the request

Returns

\JCORE\TRANSPORT\HTTP\return —

bool NULL

request()

request(  $args) : mixed

DESCRIPTOR: HTTP request types handled GET, POST, PUT, DELETE,

HTTP request extended types HEAD Asks for the response identical to the one that would correspond to a GET request, but without the response body TRACE, Echoes back the received request, OPTIONS, Returns the HTTP methods that the server supports for specified URL PATCH Is used to apply partial modifications to a resource CONNECT, get_headers()

Parameters

$args

Returns

mixed —

raw_data

parseRequest()

parseRequest(  $raw_data) : \JCORE\TRANSPORT\HTTP\return

DESCRIPTOR: enforce a method to parse the request

Parameters

$raw_data

Returns

\JCORE\TRANSPORT\HTTP\return —

NULL

compileResponse()

compileResponse(  $dataSet) : \JCORE\TRANSPORT\HTTP\return

DESCRIPTOR: enforce a method to compile a response (in the transport format)

Parameters

$dataSet

Returns

\JCORE\TRANSPORT\HTTP\return —

NULL