HTTP headers allow the client and the server to pass additional information with the request or the response. This guide covers the headers used in the Literary Quotes API.
Headers are key-value pairs sent at the start of HTTP requests and responses. They define the operating parameters of an HTTP transaction.
Authorization: Basic <base64_encoded_credentials>Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=application/jsontrueUsing curl:
curl "http://localhost:3000/quotes" \
-H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=" \
-H "Accept: application/json"
Using Postman:
application/json. X-RateLimit-* headers in the response to monitor your usage.