@app.route("<STR_LIT>", methods=["<STR_LIT:GET>", "<STR_LIT:POST>"])<EOL>def response_headers():
<EOL>headers = MultiDict(request.args.items(multi=True))<EOL>response = jsonify(list(headers.lists()))<EOL>while True:<EOL><INDENT>original_data = response.data<EOL>d = {}<EOL>for key in response.headers.keys():<EOL><INDENT>value = response.headers.get_all(key)<EOL>if len(value) == <NUM_LIT:1>:<EOL><INDENT>value = value[<NUM_LIT:0>]<EOL><DEDENT>d[key] = value<EOL><DEDENT>response = jsonify(d)<EOL>for key, value in headers.items(multi=True):<EOL><INDENT>response.headers.add(key, value)<EOL><DEDENT>response_has_changed = response.data != original_data<EOL>if not response_has_changed:<EOL><INDENT>break<EOL><DEDENT><DEDENT>return response<EOL>
Returns a set of response headers from the query string.
    ---
    tags:
      - Response inspection
    parameters:
      - in: query
        name: freeform
        explode: true
        allowEmptyValue: true
        schema:
          type: object
          additionalProperties:
            type: string
        style: form
    produces:
      - application/json
    responses:
      200:
        description: Response headers