Show:

Q.Request Class

Module: Q

Item Index

Methods

Methods

method

(
  • req
)
String

Use this to determine what method to treat the request as.

Parameters:

  • req http.Request

Returns:

String:

Returns an uppercase string such as "GET", "POST", "PUT", "DELETE" See Request methods

slotNames

(
  • req
  • [returnDefaults=false]
)
Array

The names of slots that were requested, if any

Parameters:

  • req http.Request
  • [returnDefaults=false] Boolean optional

    set to true, returns the array of slot names set in config field named Q/response/$app/slotNames in the event that slotNames was not specified at all in the request.

Returns: