REST APIs: custom HTTP headers vs URL parameters

后端 未结 8 1250
太阳男子
太阳男子 2020-12-12 11:41

When do you use custom HTTP headers in the request part of a REST API ?

Example:

Would you ever use

GET /orders/view 
(custom HTTP header)          


        
8条回答
  •  爱一瞬间的悲伤
    2020-12-12 12:04

    You can use custom headers to include more information about a partially processed request considering that Enveloping is not a good practice. The headers are secure.

提交回复
热议问题