|
| 1 | +# yaml-language-server: $schema=https://raw.githubusercontent.com/xenOs76/https-wrench/refs/heads/main/https-wrench.schema.json |
| 2 | +# vim: set ts=2 sw=2 tw=0 fo=cnqoj |
| 3 | +--- |
| 4 | +debug: false |
| 5 | +verbose: true |
| 6 | +requests: |
| 7 | + - name: httpBunGetDefault |
| 8 | + |
| 9 | + requestHeaders: |
| 10 | + - key: x-custom-header |
| 11 | + value: custom-header-value |
| 12 | + |
| 13 | + # printResponseHeaders: true |
| 14 | + # printResponseBody: true |
| 15 | + |
| 16 | + hosts: |
| 17 | + - name: httpbun.com |
| 18 | + uriList: |
| 19 | + - /get?method=DefaultGet |
| 20 | + |
| 21 | + - name: httpBunGetDeclared |
| 22 | + requestMethod: GET |
| 23 | + |
| 24 | + requestHeaders: |
| 25 | + - key: x-custom-header |
| 26 | + value: custom-header-value |
| 27 | + |
| 28 | + # printResponseHeaders: true |
| 29 | + # printResponseBody: true |
| 30 | + |
| 31 | + hosts: |
| 32 | + - name: httpbun.com |
| 33 | + uriList: |
| 34 | + - /get?clientMethod=GET |
| 35 | + |
| 36 | + - name: httpBunPost |
| 37 | + requestMethod: POST |
| 38 | + |
| 39 | + requestHeaders: |
| 40 | + - key: x-custom-header |
| 41 | + value: custom-header-value |
| 42 | + |
| 43 | + # printResponseHeaders: true |
| 44 | + # printResponseBody: true |
| 45 | + |
| 46 | + hosts: |
| 47 | + - name: httpbun.com |
| 48 | + uriList: |
| 49 | + - /post |
| 50 | + |
| 51 | + - name: httpBunPostBodyText |
| 52 | + requestMethod: POST |
| 53 | + |
| 54 | + requestHeaders: |
| 55 | + - key: content-type |
| 56 | + value: text/plain |
| 57 | + |
| 58 | + requestBody: "plain requestBody \non a multiline string\n" |
| 59 | + # printResponseHeaders: true |
| 60 | + # printResponseBody: true |
| 61 | + |
| 62 | + hosts: |
| 63 | + - name: httpbun.com |
| 64 | + uriList: |
| 65 | + - /post |
| 66 | + |
| 67 | + - name: httpBunPostBodyJson |
| 68 | + requestMethod: POST |
| 69 | + |
| 70 | + requestHeaders: |
| 71 | + - key: content-type |
| 72 | + value: application/json |
| 73 | + |
| 74 | + requestBody: '{"a": 1, "b": 2, "c": 3}' |
| 75 | + # printResponseHeaders: true |
| 76 | + # printResponseBody: true |
| 77 | + |
| 78 | + hosts: |
| 79 | + - name: httpbun.com |
| 80 | + uriList: |
| 81 | + - /post |
| 82 | + |
| 83 | + - name: httpBunPut |
| 84 | + requestMethod: PUT |
| 85 | + |
| 86 | + # printResponseHeaders: true |
| 87 | + # printResponseBody: true |
| 88 | + |
| 89 | + hosts: |
| 90 | + - name: httpbun.com |
| 91 | + uriList: |
| 92 | + - /put |
| 93 | + |
| 94 | + - name: httpBunDelete |
| 95 | + requestMethod: DELETE |
| 96 | + |
| 97 | + # printResponseHeaders: true |
| 98 | + # printResponseBody: true |
| 99 | + |
| 100 | + hosts: |
| 101 | + - name: httpbun.com |
| 102 | + uriList: |
| 103 | + - /delete |
| 104 | + |
| 105 | + - name: httpBunPatch |
| 106 | + requestMethod: PATCH |
| 107 | + |
| 108 | + # printResponseHeaders: true |
| 109 | + # printResponseBody: true |
| 110 | + |
| 111 | + hosts: |
| 112 | + - name: httpbun.com |
| 113 | + uriList: |
| 114 | + - /patch |
| 115 | + |
| 116 | + - name: reqBinOptions |
| 117 | + requestMethod: OPTIONS |
| 118 | + |
| 119 | + # printResponseHeaders: true |
| 120 | + # printResponseBody: true |
| 121 | + requestHeaders: |
| 122 | + - key: Access-Control-Request-Method |
| 123 | + value: PUT |
| 124 | + - key: Origin |
| 125 | + value: https://reqbin.com |
| 126 | + - key: Access-Control-Request-Headers |
| 127 | + value: content-type |
| 128 | + |
| 129 | + hosts: |
| 130 | + - name: api.reqbin.com |
| 131 | + uriList: |
| 132 | + - /api/v1/requests |
| 133 | + |
| 134 | + - name: httpBunTraceNotAllowed |
| 135 | + requestMethod: TRACE |
| 136 | + |
| 137 | + # printResponseHeaders: true |
| 138 | + # printResponseBody: true |
| 139 | + |
| 140 | + hosts: |
| 141 | + - name: httpbun.com |
| 142 | + uriList: |
| 143 | + - /get |
| 144 | + |
| 145 | + - name: httpBunTrace |
| 146 | + requestMethod: TRACE |
| 147 | + |
| 148 | + # printResponseHeaders: true |
| 149 | + # printResponseBody: true |
| 150 | + |
| 151 | + hosts: |
| 152 | + - name: httpbun.com |
| 153 | + uriList: |
| 154 | + - /any |
| 155 | + |
| 156 | + - name: httpBunHead |
| 157 | + requestMethod: HEAD |
| 158 | + |
| 159 | + # requestDebug: true |
| 160 | + # printResponseHeaders: true |
| 161 | + |
| 162 | + hosts: |
| 163 | + - name: httpbun.com |
| 164 | + |
0 commit comments