| 1 | --- |
| 2 | version: 1 |
| 3 | rwmutex: {} |
| 4 | interactions: |
| 5 | - request: |
| 6 | body: Service=7i6HN3TK9wS159v2gPAZ8A&Version=28&action=set&dst=http.foo&ignore_if_set=0&name=test-header&priority=50®ex=foobar&src=client.ip&substitution=123&type=request |
| 7 | form: |
| 8 | Service: |
| 9 | - 7i6HN3TK9wS159v2gPAZ8A |
| 10 | Version: |
| 11 | - "28" |
| 12 | action: |
| 13 | - set |
| 14 | dst: |
| 15 | - http.foo |
| 16 | ignore_if_set: |
| 17 | - "0" |
| 18 | name: |
| 19 | - test-header |
| 20 | priority: |
| 21 | - "50" |
| 22 | regex: |
| 23 | - foobar |
| 24 | src: |
| 25 | - client.ip |
| 26 | substitution: |
| 27 | - "123" |
| 28 | type: |
| 29 | - request |
| 30 | headers: |
| 31 | Content-Type: |
| 32 | - application/x-www-form-urlencoded |
| 33 | Fastly-Key: |
| 34 | - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| 35 | User-Agent: |
| 36 | - FastlyGo/0.4.3.dev (+github.com/fastly/go-fastly; go1.12) |
| 37 | url: https://api.fastly.com/service/7i6HN3TK9wS159v2gPAZ8A/version/28/header |
| 38 | method: POST |
| 39 | response: |
| 40 | body: '{"action":"set","dst":"http.foo","ignore_if_set":"0","name":"test-header","priority":"50","regex":"foobar","src":"client.ip","substitution":"123","type":"request","service_id":"7i6HN3TK9wS159v2gPAZ8A","version":"28","cache_condition":null,"updated_at":"2019-05-09T20:01:13Z","created_at":"2019-05-09T20:01:13Z","deleted_at":null,"request_condition":null,"response_condition":null}' |
| 41 | headers: |
| 42 | Accept-Ranges: |
| 43 | - bytes |
| 44 | Cache-Control: |
| 45 | - no-cache |
| 46 | Content-Type: |
| 47 | - application/json |
| 48 | Date: |
| 49 | - Thu, 09 May 2019 20:01:13 GMT |
| 50 | Fastly-Ratelimit-Remaining: |
| 51 | - "19998" |
| 52 | Fastly-Ratelimit-Reset: |
| 53 | - "1557435600" |
| 54 | Status: |
| 55 | - 200 OK |
| 56 | Strict-Transport-Security: |
| 57 | - max-age=31536000 |
| 58 | Vary: |
| 59 | - Accept-Encoding |
| 60 | Via: |
| 61 | - 1.1 varnish |
| 62 | - 1.1 varnish |
| 63 | X-Cache: |
| 64 | - MISS, MISS |
| 65 | X-Cache-Hits: |
| 66 | - 0, 0 |
| 67 | X-Served-By: |
| 68 | - cache-control-slwdc9035-CONTROL-SLWDC, cache-pao17432-PAO |
| 69 | X-Timer: |
| 70 | - S1557432073.757298,VS0,VE490 |
| 71 | status: 200 OK |
| 72 | code: 200 |