51Degrees Pipeline for Python

fiftyone_pipeline_core.web Namespace Reference

Functions

 webevidence (request)
 Get evidence from a web request (gets headers, cookies, query parameters and the fields of a posted form).
 set_response_header (flowData, response)
 Set UACH response header in web response (sets Accept-CH header in response).

Function Documentation

◆ set_response_header()

set_response_header ( flowData,
response )

Set UACH response header in web response (sets Accept-CH header in response).

@type response: Response

Parameters
responseA Response object
response_header_dictDictionary containing response header key and values to be set @rtype response
Returns
A response object containing headers with non null values in response

◆ webevidence()

webevidence ( request)

Get evidence from a web request (gets headers, cookies, query parameters and the fields of a posted form).

@type request: Request

Parameters
requestA Request object @rtype dict
Returns
A dictionary of web evidence that can be using in flowdata.evidence.add_from_dict()