\JCORE\TRANSPORT\URLURL_API

Class URL_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 : 

the request headers

Type

$raw_data

$raw_data : 

the request raw_data

Type

$parsedData

$parsedData : 

the request parsedData

Type

Methods

__construct()

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

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

Returns

\JCORE\TRANSPORT\URL\return —

bool NULL

request()

request(  $args) : \JCORE\TRANSPORT\URL\return

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

\JCORE\TRANSPORT\URL\return —

mixed $raw_data

parseRequest()

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

DESCRIPTOR: enforce a method to parse the request in the sub class

Parameters

$raw_data

Returns

\JCORE\TRANSPORT\URL\return —

NULL

compileResponse()

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

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

Parameters

$dataSet

Returns

\JCORE\TRANSPORT\URL\return —

NULL