| @@ -1,18 +1,16 @@ | ||
| 1 | -// Basic authentication | |
| 2 | -GET http://example.com | |
| 3 | -Authorization: Basic username password | |
| 1 | +POST /my-endpoint HTTP/1.1 | |
| 2 | +Host: api.example.com:8767 | |
| 3 | +Authorization: Bearer my-token-value | |
| 4 | +content-type: application/json | |
| 4 | 5 | |
| 5 | -### | |
| 6 | +{ | |
| 7 | + "name": "sample", | |
| 8 | + "time": "Wed, 21 Oct 2015 18:27:50 GMT" | |
| 9 | +} | |
| 6 | 10 | |
| 7 | -// Digest authentication | |
| 8 | -GET http://example.com | |
| 9 | -Authorization: Digest username password | |
| 11 | +GET /hello.txt HTTP/1.1 | |
| 12 | +User-Agent: curl/7.64.1 | |
| 13 | +Host: www.example.com | |
| 14 | +Accept-Language: en, mi | |
| 10 | 15 | |
| 11 | -// The request body is provided in place | |
| 12 | -POST https://example.com:8080/api/html/post HTTP/1.1 | |
| 13 | -Content-Type: application/json | |
| 14 | -Cookie: key=first-value | |
| 15 | - | |
| 16 | -{ "key" : "value", "list": [1, 2, 3] } | |
| 17 | - | |
| 18 | -// From https://www.jetbrains.com/help/idea/exploring-http-syntax.html#use-multipart-form-data | |
| 16 | +# from various places and https://www.rfc-editor.org/rfc/rfc9110.html#name-example-message-exchange | |