rest.nvim icon indicating copy to clipboard operation
rest.nvim copied to clipboard

more test example for http request

Open FuGangqiang opened this issue 3 years ago • 2 comments

  • multipart/form
  • x-www-form-urlencoded
  • plain/text
  • transfer file
  • websocket

FuGangqiang avatar Jan 24 '22 07:01 FuGangqiang

Adding to the list of examples, here is how I'm including a session token acquired from a prior post request:

GET http://locahost:3010/users
Cookie: session_token=<token>

# or/
Authorization: Bearer <token>

EdmundsEcho avatar Feb 16 '22 13:02 EdmundsEcho

also I think the help should mention the post payload must be in a new paragraph apart from the headers

    3. Now, we set the body of our request. (<--- todo mention a newline here)
       `{`
       `    "name": "morpheus",`
       `    "job": "leader"`
       `}`

teto avatar Mar 09 '22 13:03 teto