luna_lambda_tools.public.standalone.standalone_request.StandaloneLambdaRequest
- final class luna_lambda_tools.public.standalone.standalone_request.StandaloneLambdaRequest(*args, **kwargs)[source]
Standalone lambda request
- __init__(*args, **kwargs)
Methods
__init__(*args, **kwargs)generate_id(*_)Generate a unique ID for the request.
getBody()Get body from request
get_args([keep_blank_values, ...])Get query arguments. Overload default keep_blank_values :type keep_blank_values:
bool:param keep_blank_values: flag indicating whether blank values in percent-encoded queries should be treated as blank strings :type strict_parsing:bool:param strict_parsing: flag indicating what to do with parsing errors :type encoding:str:param encoding: specify how to decode percent-encoded sequences :type errors:str:param errors: specify how to decode percent-encoded sequences.get_cookies()- rtype:
RequestParameters
get_current()Retrieve the current request object
get_form([keep_blank_values])Method to extract and parse the form data from a request.
get_query_args([keep_blank_values, ...])Parse query_string using urllib.parse.parse_qsl.
load_json([loads])Load the request body as JSON
make_context()Create a new context object.
receive_body()Receive request.body, if not already received.
reset_response()Reset the response object.
respond([response, status, headers, ...])Respond to the request without returning.
sendToMonitoring(points)Send point to monitoring
url_for(view_name, **kwargs)Retrieve a URL for a given view name.
Attributes
requestIddataForMonitoringstartRequestTimeCheckPointstartRequestTimeerrorstreamResponseacceptAccepted response content types.
appappCtxGet app context
argsGet query arguments.
beautyRouteGet request beauty route :returns: beauty uri template
bodybodySampleStoreEnabledWhether body sample store is enabled
charsetThe value of charset part for Content-Type HTTP header.
client_ipClient IP address.
clientsconfigGet application config.
conn_infocontent_typeThe value of content part for Content-Type HTTP header.
cookiesIncoming cookies on the request
credentialsAttempt to return the auth header value.
ctxThe current request context.
endpointAlias of sanic.request.Request.name
eventsEnabledWhether luna-events is enabled
faceSampleStoreEnabledWhether face sample store is enabled
facesEnabledWhether luna-faces is enabled
filesThe request body parsed as uploaded files
formThe request body parsed as form data
forwardedActive proxy information obtained from request headers, as specified in Sanic configuration.
handlersEnabledWhether handlers is enabled
headheadershostport).
idA request ID passed from the client, or generated from the backend.
imageOriginStoreEnabledWhether image origin store is enabled
ipPeer ip of the socket
is_cacheableWhether the HTTP method is cacheable.
is_idempotentWhether the HTTP method is iempotent.
is_safeWhether the HTTP method is safe.
jsonGet json from request
loggerlvaEnabledWhether Luna-Video-Agent is enabled
match_infoMatched path parameters after resolving route
matcherEnabledWhether lpm is enabled
methodnameThe route name
network_pathsAccess the network paths if available
parsed_acceptparsed_argsparsed_cookiesparsed_credentialsparsed_filesparsed_formparsed_forwardedparsed_jsonparsed_not_grouped_argsparsed_tokenpathPath of the local HTTP request
portPeer port of the socket
protocolThe HTTP protocol instance
query_argsParse query_string using urllib.parse.parse_qsl.
query_stringRepresentation of the requested query
raw_headersThe unparsed HTTP headers
raw_urlremoteSDKEnabledWhether remote sdk is enabled
remote_addrClient IP address, if available from proxy.
request_lineThe first line of a HTTP request
respondedrouteschemeDetermine request scheme.
scopeThe ASGI scope of the request.
senderEnabledWhether sender is enabled
server_namehostname the client connected to, by request.host
server_pathFull path of current URL; uses proxied or local path
server_portThe port the client connected to, by forwarded port or request.host.
socketInformation about the connected socket if available
streamstream_idAccess the HTTP/3 stream ID.
tokenAttempt to return the auth header token.
transporturi_templateThe defined URI template
urlThe URL
versionaccountId