A REST API Object for Database Endpoint Handling & Documentation.
Sends an Error
response to the Client
The Client HTTP
Request
instance
The Server HTTP
Response
instance
The Error
instance
Sends an Limit
response to the Client when a
limit-rate has been reached
The Client HTTP
Request
instance
The Server HTTP
Response
instance
Renders a message specific to a User
account via a provided template.
A sprintf
-style string template.
A username, email, etc.
A formatted message directed to a specific User
.
Sends a User-Info Server Response to a Client (HTTP
or Socket
).
An HTTP
or Socket
instance.
A message regarding the response.
The user-info object.
A username, email, etc.
The body
object from the request.
The payload status code (this is NOT the HTTP
status).
The next
step in the process.
Sends an Error Response to a Client (HTTP
or Socket
).
An HTTP
or Socket
instance.
The appropriate Error Response handler.
The Error
instance.
A username, email, etc.
The query
object from the request.
If true
, send to all subscribers.
If true
, do NOT send, just return the result.
If noSend
is true
, this result object is returned.
Generates a random, unique HASH
for identifying each Timer
A random, unique HASH
identifier
Starts a Timer until explicity ended with TimerEnd()
A generated HASH
identifier
Ends the Timer and returns the duration
A HASH
identifier (gererated by TimerHash()
)
The duration of the timed execution
Sanitizes & Formats each Parameter in an Endpoint's clause
The name of this Endpoint
The method of this Endpoint
An object literal
of parameter clauses
An object literal
of GNParam
instances for each parameter
Builds a full-path of endpoint paths in relation to this request.
The strings to use in the path.
Builds a SQL
casting function to convert row values to determined types for a request method handler.
A request-method handler.
Takes a request query
/body
and converts any ;
-separated lists into Arrays
.
The request clause.
Initializes all Data-Endpoints
A REST API Object for Database Endpoint Handling & Documentation.