Skip to main content

Standard Parameters

Here is the exhaustive list of standard parameters, their direction (input / output), and what they are used for.

caution

Output parameters are returned via a SELECT statement. Procedure arguments in output mode (OUTPUT) are not supported.

NameDirection.NET TypeFormatSQL Server TypeDescription
request_content_typeInputstringMIME TypeVARCHAR(255)The MIME type of the request body, extracted from the HTTP Content-Type header.
request_bodyInputstringRawNVARCHAR(MAX)The request body.
request_formInputstringJSONNVARCHAR(MAX)A JSON that represents the form witch has been submitted by the user through a form content type. When it isn't null, request_body is null.
request_headersInputstringJSONNVARCHAR(MAX)The request headers, as a key-value dictionary.
request_cookiesInputstringJSONNVARCHAR(MAX)The cookies attached to the request, as a key-value dictionary.
request_pathInputstringRawNVARCHAR(MAX)The request path.
query_paramsInputstringJSONNVARCHAR(MAX)The query parameters (present after the '?' in the URI), as a key-value dictionary.
path_paramsInputstringJSONNVARCHAR(MAX)The parameters resolved from the route, as a key-value dictionary.
request_modelInputstringJSONNVARCHAR(MAX)The raw model managed by SQListe, containing all the information about the request.
errorInputstringJSONNVARCHAR(MAX)A model containing information about the last error that occurred. For more information, refer to TODO.
response_modelInputstringJSONNVARCHAR(MAX)The raw model managed by SQListe, containing all the information about the response in its current state.

These parameters can be returned from a procedure via a SELECT statement and will modify the state of the response.

NameDirection.NET TypeFormatSQL Server TypeDescription
response_content_typeInput / OutputstringMIME TypeVARCHAR(255)The MIME type of the response body, which will be assigned to the Content-Type HTTP header if not defined.
response_bodyInput / OutputstringRawNVARCHAR(MAX)The response body.
response_fileInput / Outputbyte[]RawVARBINARY(MAX)The file that will be included in the response.
response_file_nameInput / OutputstringRawNVARCHAR(MAX)The name of the file that will be included in the response.
response_file_inlineInput / OutputboolBITTrue if the file should be in the browser's viewer.
response_headersInput / OutputstringJSONNVARCHAR(MAX)The response headers, as a key-value dictionary.
response_cookiesInput / OutputstringJSONNVARCHAR(MAX)The cookie attached to the response. For more information on the format, refer to the... TODO section.
response_statusInput / OutputintHTTP StatusINTThe response status code.
tip

These parameters can also be passed as procedure arguments. This allows retrieving the current state of the response, which can be useful after processing by middleware.

These parameters can be passed as procedure arguments and returned to modify the state.

NameDirection.NET TypeFormatSQL Server TypeDescription
request_storageInput / OutputstringJSON*NVARCHAR(MAX)Storage with a lifespan of a request. It is initialized with an empty JSON object at the beginning of a request ('{}').
sessionInput / OutputstringJSON*NVARCHAR(MAX)Access to the HTTP session. For more information, refer to... TODO section.
info

JSON* : Although the content is initially initialized with an empty JSON ('{}') by default, it can be safely changed as this content is not processed by SQListe.

Middleware-specific Parameters

These parameters can be passed as procedure arguments and returned to modify the state.

NameDirection.NET TypeFormatSQL Server TypeDescription
nextOutputboolBITIf returned as 0, it interrupts the request pipeline. It defaults to 1.