Mashape/httpsnippet

View on GitHub
src/targets/python/requests/fixtures/headers.py

Summary

Maintainability
A
1 hr
Test Coverage
import requests

url = "http://mockbin.com/har"

headers = {
    "accept": "application/json",
    "x-foo": "Bar",
    "quoted-value": "\"quoted\" 'string'"
}

response = requests.get(url, headers=headers)

print(response.json())