Logo

dev-resources.site

for different kinds of informations.

HTTP Headers in API

Published at
12/23/2024
Categories
api
http
request
response
Author
sallbro
Categories
4 categories in total
api
open
http
open
request
open
response
open
Author
7 person written this
sallbro
open
HTTP Headers in API

http header are the field in http api request and response.

it is like setting up the address from and to in sending envelop to postman.

similarly http header are doing so.
*simple request header *

Image description

response header for same request

Image description

** some of build in header are **

  • host
  • path
  • content-type and many other refer doc

_u can add own custom header. _
like req.setHeader("X-myname","sallbro");
it is best practise to add X before name of header to identify it is custom header.

Featured ones: