Exemple #1
0
def target_wsgi_application_capture_params_api_called(environ, start_response):
    status = "200 OK"
    output = b"Hello World!"

    capture_request_params(True)
    response_headers = [("Content-Type", "text/plain; charset=utf-8"), ("Content-Length", str(len(output)))]
    start_response(status, response_headers)

    return [output]
Exemple #2
0
def target_wsgi_application_capture_params_api_called(environ, start_response):
    status = '200 OK'
    output = b'Hello World!'

    capture_request_params(True)
    response_headers = [('Content-Type', 'text/plain; charset=utf-8'),
                        ('Content-Length', str(len(output)))]
    start_response(status, response_headers)

    return [output]