vcr 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. data/.document +5 -0
  2. data/.gitignore +27 -0
  3. data/CHANGELOG.md +13 -0
  4. data/Gemfile +24 -0
  5. data/Gemfile.lock +119 -0
  6. data/README.md +3 -6
  7. data/Rakefile +70 -0
  8. data/benchmarks/http_stubbing_libraries.rb +59 -0
  9. data/features/fixtures/vcr_cassettes/1.9.1/cucumber_tags/regex_cassette.yml +43 -0
  10. data/features/fixtures/vcr_cassettes/1.9.1/cucumber_tags/replay_cassette1.yml +43 -0
  11. data/features/fixtures/vcr_cassettes/1.9.1/cucumber_tags/replay_cassette2.yml +63 -0
  12. data/features/fixtures/vcr_cassettes/1.9.1/cucumber_tags/replay_cassette3.yml +85 -0
  13. data/features/fixtures/vcr_cassettes/1.9.1/erb_cassette.yml +36 -0
  14. data/features/fixtures/vcr_cassettes/1.9.1/match_requests_on.yml +35 -0
  15. data/features/fixtures/vcr_cassettes/1.9.1/nested_replay_cassette.yml +32 -0
  16. data/features/fixtures/vcr_cassettes/1.9.1/not_the_real_response.yml +43 -0
  17. data/features/fixtures/vcr_cassettes/1.9.1/replay_localhost_cassette.yml +32 -0
  18. data/features/fixtures/vcr_cassettes/not_1.9.1/cucumber_tags/regex_cassette.yml +43 -0
  19. data/features/fixtures/vcr_cassettes/not_1.9.1/cucumber_tags/replay_cassette1.yml +43 -0
  20. data/features/fixtures/vcr_cassettes/not_1.9.1/cucumber_tags/replay_cassette2.yml +47 -0
  21. data/features/fixtures/vcr_cassettes/not_1.9.1/cucumber_tags/replay_cassette3.yml +85 -0
  22. data/features/fixtures/vcr_cassettes/not_1.9.1/erb_cassette.yml +36 -0
  23. data/features/fixtures/vcr_cassettes/not_1.9.1/match_requests_on.yml +35 -0
  24. data/features/fixtures/vcr_cassettes/not_1.9.1/nested_replay_cassette.yml +24 -0
  25. data/features/fixtures/vcr_cassettes/not_1.9.1/not_the_real_response.yml +43 -0
  26. data/features/fixtures/vcr_cassettes/not_1.9.1/replay_localhost_cassette.yml +32 -0
  27. data/features/http_client.feature +16 -0
  28. data/features/net_http.feature +27 -0
  29. data/features/record_response.feature +66 -0
  30. data/features/replay_recorded_response.feature +96 -0
  31. data/features/step_definitions/http_client_steps.rb +7 -0
  32. data/features/step_definitions/net_http_steps.rb +37 -0
  33. data/features/step_definitions/vcr_steps.rb +240 -0
  34. data/features/support/env.rb +104 -0
  35. data/features/webmock.feature +26 -0
  36. data/lib/vcr.rb +2 -2
  37. data/lib/vcr/extensions/net_http.rb +0 -8
  38. data/lib/vcr/http_stubbing_adapters/common.rb +39 -0
  39. data/lib/vcr/http_stubbing_adapters/fakeweb.rb +74 -70
  40. data/lib/vcr/http_stubbing_adapters/webmock.rb +61 -62
  41. data/lib/vcr/version.rb +1 -1
  42. data/spec/cassette_spec.rb +280 -0
  43. data/spec/config_spec.rb +76 -0
  44. data/spec/cucumber_tags_spec.rb +55 -0
  45. data/spec/deprecations_spec.rb +52 -0
  46. data/spec/extensions/net_http_response_spec.rb +85 -0
  47. data/spec/extensions/net_http_spec.rb +77 -0
  48. data/spec/fixtures/1.9.1/0_3_1_cassette.yml +29 -0
  49. data/spec/fixtures/1.9.1/cassette_spec/erb_with_no_vars.yml +32 -0
  50. data/spec/fixtures/1.9.1/cassette_spec/erb_with_vars.yml +32 -0
  51. data/spec/fixtures/1.9.1/cassette_spec/example.yml +110 -0
  52. data/spec/fixtures/1.9.1/cassette_spec/with_localhost_requests.yml +86 -0
  53. data/spec/fixtures/1.9.1/example_net_http.yml +14 -0
  54. data/spec/fixtures/1.9.1/example_net_http_request.yml +12 -0
  55. data/spec/fixtures/1.9.1/example_net_http_response.yml +25 -0
  56. data/spec/fixtures/1.9.1/fake_example.com_responses.yml +106 -0
  57. data/spec/fixtures/1.9.1/match_requests_on.yml +185 -0
  58. data/spec/fixtures/not_1.9.1/0_3_1_cassette.yml +29 -0
  59. data/spec/fixtures/not_1.9.1/cassette_spec/erb_with_no_vars.yml +32 -0
  60. data/spec/fixtures/not_1.9.1/cassette_spec/erb_with_vars.yml +32 -0
  61. data/spec/fixtures/not_1.9.1/cassette_spec/example.yml +110 -0
  62. data/spec/fixtures/not_1.9.1/cassette_spec/with_localhost_requests.yml +86 -0
  63. data/spec/fixtures/not_1.9.1/example_net_http.yml +14 -0
  64. data/spec/fixtures/not_1.9.1/example_net_http_request.yml +12 -0
  65. data/spec/fixtures/not_1.9.1/example_net_http_response.yml +25 -0
  66. data/spec/fixtures/not_1.9.1/fake_example.com_responses.yml +106 -0
  67. data/spec/fixtures/not_1.9.1/match_requests_on.yml +185 -0
  68. data/spec/http_stubbing_adapters/fakeweb_spec.rb +35 -0
  69. data/spec/http_stubbing_adapters/webmock_spec.rb +35 -0
  70. data/spec/request_matcher_spec.rb +194 -0
  71. data/spec/spec_helper.rb +40 -0
  72. data/spec/structs_spec.rb +121 -0
  73. data/spec/support/disable_warnings.rb +12 -0
  74. data/spec/support/http_library_adapters.rb +272 -0
  75. data/spec/support/http_stubbing_adapter.rb +100 -0
  76. data/spec/support/pending_on_heroku.rb +14 -0
  77. data/spec/support/temp_cassette_library_dir.rb +16 -0
  78. data/spec/support/vcr_localhost_server.rb +53 -0
  79. data/spec/vcr_spec.rb +198 -0
  80. data/spec/version_spec.rb +11 -0
  81. data/vcr.gemspec +43 -0
  82. metadata +134 -73
  83. data/lib/vcr/http_stubbing_adapters/base.rb +0 -36
  84. data/lib/vcr/version.rbc +0 -572
@@ -0,0 +1,110 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ :request: !ruby/struct:VCR::Request
4
+ :method: :get
5
+ :uri: http://example.com:80/
6
+ :body:
7
+ :headers:
8
+ :response: !ruby/struct:VCR::Response
9
+ :status: !ruby/struct:VCR::ResponseStatus
10
+ :code: 200
11
+ :message: OK
12
+ :headers:
13
+ server:
14
+ - Apache/2.2.3 (Red Hat)
15
+ last-modified:
16
+ - Tue, 15 Nov 2005 13:24:10 GMT
17
+ etag:
18
+ - "\"b300b4-1b6-4059a80bfd280\""
19
+ accept-ranges:
20
+ - bytes
21
+ content-type:
22
+ - text/html; charset=UTF-8
23
+ connection:
24
+ - Keep-Alive
25
+ date:
26
+ - Mon, 25 Jan 2010 18:00:32 GMT
27
+ age:
28
+ - "2090"
29
+ content-length:
30
+ - "438"
31
+ :body: |
32
+ <HTML>
33
+ <HEAD>
34
+ <TITLE>Example Web Page</TITLE>
35
+ </HEAD>
36
+ <body>
37
+ <p>You have reached this web page by typing &quot;example.com&quot;,
38
+ &quot;example.net&quot;,
39
+ or &quot;example.org&quot; into your web browser.</p>
40
+ <p>These domain names are reserved for use in documentation and are not available
41
+ for registration. See <a href="http://www.rfc-editor.org/rfc/rfc2606.txt">RFC
42
+ 2606</a>, Section 3.</p>
43
+ </BODY>
44
+ </HTML>
45
+
46
+ :http_version: "1.1"
47
+ - !ruby/struct:VCR::HTTPInteraction
48
+ :request: !ruby/struct:VCR::Request
49
+ :method: :get
50
+ :uri: http://example.com:80/foo
51
+ :body:
52
+ :headers:
53
+ :response: !ruby/struct:VCR::Response
54
+ :status: !ruby/struct:VCR::ResponseStatus
55
+ :code: 404
56
+ :message: Not Found
57
+ :headers:
58
+ date:
59
+ - Mon, 25 Jan 2010 18:00:32 GMT
60
+ server:
61
+ - Apache/2.2.3 (CentOS)
62
+ content-length:
63
+ - "277"
64
+ connection:
65
+ - close
66
+ content-type:
67
+ - text/html; charset=iso-8859-1
68
+ :body: |
69
+ <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
70
+ <html><head>
71
+ <title>404 Not Found</title>
72
+ </head><body>
73
+ <h1>Not Found</h1>
74
+ <p>The requested URL /foo was not found on this server.</p>
75
+ <hr>
76
+ <address>Apache/2.2.3 (CentOS) Server at example.com Port 80</address>
77
+ </body></html>
78
+
79
+ :http_version: "1.1"
80
+ - !ruby/struct:VCR::HTTPInteraction
81
+ :request: !ruby/struct:VCR::Request
82
+ :method: :get
83
+ :uri: http://example.com:80/
84
+ :body:
85
+ :headers:
86
+ :response: !ruby/struct:VCR::Response
87
+ :status: !ruby/struct:VCR::ResponseStatus
88
+ :code: 200
89
+ :message: OK
90
+ :headers:
91
+ server:
92
+ - Apache/2.2.3 (Red Hat)
93
+ last-modified:
94
+ - Tue, 15 Nov 2005 13:24:10 GMT
95
+ etag:
96
+ - "\"b300b4-1b6-4059a80bfd280\""
97
+ accept-ranges:
98
+ - bytes
99
+ content-type:
100
+ - text/html; charset=UTF-8
101
+ connection:
102
+ - Keep-Alive
103
+ date:
104
+ - Mon, 25 Jan 2010 18:00:32 GMT
105
+ age:
106
+ - "2090"
107
+ content-length:
108
+ - "438"
109
+ :body: Another example.com response
110
+ :http_version: "1.1"
@@ -0,0 +1,86 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ :request: !ruby/struct:VCR::Request
4
+ :method: :get
5
+ :uri: http://localhost:80/
6
+ :body:
7
+ :headers:
8
+ :response: !ruby/struct:VCR::Response
9
+ :status: !ruby/struct:VCR::ResponseStatus
10
+ :code: 200
11
+ :message: OK
12
+ :headers:
13
+ etag:
14
+ - "\"24ec5-1b6-4059a80bfd280\""
15
+ last-modified:
16
+ - Tue, 15 Nov 2005 13:24:10 GMT
17
+ connection:
18
+ - Keep-Alive
19
+ content-type:
20
+ - text/html; charset=UTF-8
21
+ date:
22
+ - Thu, 25 Feb 2010 07:53:51 GMT
23
+ server:
24
+ - Apache/2.2.3 (CentOS)
25
+ content-length:
26
+ - "438"
27
+ age:
28
+ - "9260"
29
+ accept-ranges:
30
+ - bytes
31
+ :body: Localhost response
32
+ :http_version: "1.1"
33
+ - !ruby/struct:VCR::HTTPInteraction
34
+ :request: !ruby/struct:VCR::Request
35
+ :method: :get
36
+ :uri: http://127.0.0.1:80/
37
+ :body:
38
+ :headers:
39
+ :response: !ruby/struct:VCR::Response
40
+ :status: !ruby/struct:VCR::ResponseStatus
41
+ :code: 404
42
+ :message: Not Found
43
+ :headers:
44
+ content-type:
45
+ - text/html; charset=iso-8859-1
46
+ connection:
47
+ - close
48
+ server:
49
+ - Apache/2.2.3 (CentOS)
50
+ date:
51
+ - Thu, 25 Feb 2010 07:53:52 GMT
52
+ content-length:
53
+ - "277"
54
+ :body: 127.0.0.1 response
55
+ :http_version: "1.1"
56
+ - !ruby/struct:VCR::HTTPInteraction
57
+ :request: !ruby/struct:VCR::Request
58
+ :method: :get
59
+ :uri: http://example.com:80/
60
+ :body:
61
+ :headers:
62
+ :response: !ruby/struct:VCR::Response
63
+ :status: !ruby/struct:VCR::ResponseStatus
64
+ :code: 200
65
+ :message: OK
66
+ :headers:
67
+ etag:
68
+ - "\"24ec5-1b6-4059a80bfd280\""
69
+ last-modified:
70
+ - Tue, 15 Nov 2005 13:24:10 GMT
71
+ connection:
72
+ - Keep-Alive
73
+ content-type:
74
+ - text/html; charset=UTF-8
75
+ date:
76
+ - Thu, 25 Feb 2010 07:53:51 GMT
77
+ server:
78
+ - Apache/2.2.3 (CentOS)
79
+ content-length:
80
+ - "438"
81
+ age:
82
+ - "9260"
83
+ accept-ranges:
84
+ - bytes
85
+ :body: example.com response
86
+ :http_version: "1.1"
@@ -0,0 +1,14 @@
1
+ --- !ruby/object:Net::HTTP
2
+ address: example.com
3
+ close_on_empty_response: false
4
+ curr_http_version: "1.1"
5
+ debug_output:
6
+ newimpl: true
7
+ open_timeout:
8
+ port: 80
9
+ read_timeout: 60
10
+ seems_1_0_server: false
11
+ socket:
12
+ ssl_context:
13
+ started: true
14
+ use_ssl: false
@@ -0,0 +1,12 @@
1
+ --- !ruby/object:Net::HTTP::Post
2
+ body: id=7
3
+ body_stream:
4
+ header:
5
+ accept:
6
+ - "*/*"
7
+ content-type:
8
+ - application/x-www-form-urlencoded
9
+ method: POST
10
+ path: /
11
+ request_has_body: true
12
+ response_has_body: true
@@ -0,0 +1,25 @@
1
+ --- !ruby/object:Net::HTTPOK
2
+ body: The response from example.com
3
+ body_exist: true
4
+ code: "200"
5
+ header:
6
+ last-modified:
7
+ - Tue, 15 Nov 2005 13:24:10 GMT
8
+ connection:
9
+ - close
10
+ date:
11
+ - Wed, 31 Mar 2010 02:43:26 GMT
12
+ content-type:
13
+ - text/html; charset=UTF-8
14
+ etag:
15
+ - "\"24ec5-1b6-4059a80bfd280\""
16
+ server:
17
+ - Apache/2.2.3 (CentOS)
18
+ content-length:
19
+ - "438"
20
+ accept-ranges:
21
+ - bytes
22
+ http_version: "1.1"
23
+ message: OK
24
+ read: true
25
+ socket:
@@ -0,0 +1,106 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ :request: !ruby/struct:VCR::Request
4
+ :method: :post
5
+ :uri: http://example.com:80/
6
+ :body:
7
+ :headers:
8
+ :response: !ruby/struct:VCR::Response
9
+ :status: !ruby/struct:VCR::ResponseStatus
10
+ :code: 200
11
+ :message: OK
12
+ :headers:
13
+ etag:
14
+ - "\"24ec5-1b6-4059a80bfd280\""
15
+ last-modified:
16
+ - Tue, 15 Nov 2005 13:24:10 GMT
17
+ content-type:
18
+ - text/html; charset=UTF-8
19
+ connection:
20
+ - close
21
+ server:
22
+ - Apache/2.2.3 (CentOS)
23
+ date:
24
+ - Wed, 31 Mar 2010 02:43:26 GMT
25
+ content-length:
26
+ - "438"
27
+ accept-ranges:
28
+ - bytes
29
+ :body: example.com post response with id=7
30
+ :http_version: "1.1"
31
+ - !ruby/struct:VCR::HTTPInteraction
32
+ :request: !ruby/struct:VCR::Request
33
+ :method: :get
34
+ :uri: http://example.com:80/foo
35
+ :body:
36
+ :headers:
37
+ :response: !ruby/struct:VCR::Response
38
+ :status: !ruby/struct:VCR::ResponseStatus
39
+ :code: 200
40
+ :message: OK
41
+ :headers:
42
+ etag:
43
+ - "\"24ec5-1b6-4059a80bfd280\""
44
+ last-modified:
45
+ - Tue, 15 Nov 2005 13:24:10 GMT
46
+ connection:
47
+ - Keep-Alive
48
+ content-type:
49
+ - text/html; charset=UTF-8
50
+ date:
51
+ - Wed, 31 Mar 2010 02:43:23 GMT
52
+ server:
53
+ - Apache/2.2.3 (CentOS)
54
+ content-length:
55
+ - "438"
56
+ age:
57
+ - "3285"
58
+ accept-ranges:
59
+ - bytes
60
+ :body: example.com get response with path=foo
61
+ :http_version: "1.1"
62
+ - !ruby/struct:VCR::HTTPInteraction
63
+ :request: !ruby/struct:VCR::Request
64
+ :method: :post
65
+ :uri: http://example.com:80/
66
+ :body:
67
+ :headers:
68
+ :response: !ruby/struct:VCR::Response
69
+ :status: !ruby/struct:VCR::ResponseStatus
70
+ :code: 200
71
+ :message: OK
72
+ :headers:
73
+ etag:
74
+ - "\"24ec5-1b6-4059a80bfd280\""
75
+ last-modified:
76
+ - Tue, 15 Nov 2005 13:24:10 GMT
77
+ content-type:
78
+ - text/html; charset=UTF-8
79
+ connection:
80
+ - close
81
+ server:
82
+ - Apache/2.2.3 (CentOS)
83
+ date:
84
+ - Wed, 31 Mar 2010 02:43:26 GMT
85
+ content-length:
86
+ - "438"
87
+ accept-ranges:
88
+ - bytes
89
+ :body: example.com post response with id=3
90
+ :http_version: "1.1"
91
+ - !ruby/struct:VCR::HTTPInteraction
92
+ :request: !ruby/struct:VCR::Request
93
+ :method: :get
94
+ :uri: http://example.com:80/two_set_cookie_headers
95
+ :body:
96
+ :headers:
97
+ :response: !ruby/struct:VCR::Response
98
+ :status: !ruby/struct:VCR::ResponseStatus
99
+ :code: 200
100
+ :message: OK
101
+ :headers:
102
+ set-cookie:
103
+ - bar=bazz
104
+ - foo=bar
105
+ :body: this response has two set-cookie headers
106
+ :http_version: "1.1"
@@ -0,0 +1,185 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ :request: !ruby/struct:VCR::Request
4
+ :method: :post
5
+ :uri: http://example.com:80/method
6
+ :body:
7
+ :headers:
8
+ :response: !ruby/struct:VCR::Response
9
+ :status: !ruby/struct:VCR::ResponseStatus
10
+ :code: 200
11
+ :message: OK
12
+ :headers:
13
+ etag:
14
+ - "\"24ec5-1b6-4059a80bfd280\""
15
+ :body: post method response
16
+ :http_version: "1.1"
17
+ - !ruby/struct:VCR::HTTPInteraction
18
+ :request: !ruby/struct:VCR::Request
19
+ :method: :get
20
+ :uri: http://example.com:80/method
21
+ :body:
22
+ :headers:
23
+ :response: !ruby/struct:VCR::Response
24
+ :status: !ruby/struct:VCR::ResponseStatus
25
+ :code: 200
26
+ :message: OK
27
+ :headers:
28
+ etag:
29
+ - "\"24ec5-1b6-4059a80bfd280\""
30
+ :body: get method response
31
+ :http_version: "1.1"
32
+ - !ruby/struct:VCR::HTTPInteraction
33
+ :request: !ruby/struct:VCR::Request
34
+ :method: :post
35
+ :uri: http://example1.com:80/host
36
+ :body:
37
+ :headers:
38
+ :response: !ruby/struct:VCR::Response
39
+ :status: !ruby/struct:VCR::ResponseStatus
40
+ :code: 200
41
+ :message: OK
42
+ :headers:
43
+ etag:
44
+ - "\"24ec5-1b6-4059a80bfd280\""
45
+ :body: example1.com host response
46
+ :http_version: "1.1"
47
+ - !ruby/struct:VCR::HTTPInteraction
48
+ :request: !ruby/struct:VCR::Request
49
+ :method: :post
50
+ :uri: http://example2.com:80/host
51
+ :body:
52
+ :headers:
53
+ :response: !ruby/struct:VCR::Response
54
+ :status: !ruby/struct:VCR::ResponseStatus
55
+ :code: 200
56
+ :message: OK
57
+ :headers:
58
+ etag:
59
+ - "\"24ec5-1b6-4059a80bfd280\""
60
+ :body: example2.com host response
61
+ :http_version: "1.1"
62
+ - !ruby/struct:VCR::HTTPInteraction
63
+ :request: !ruby/struct:VCR::Request
64
+ :method: :post
65
+ :uri: http://example.com:80/path1
66
+ :body:
67
+ :headers:
68
+ :response: !ruby/struct:VCR::Response
69
+ :status: !ruby/struct:VCR::ResponseStatus
70
+ :code: 200
71
+ :message: OK
72
+ :headers:
73
+ etag:
74
+ - "\"24ec5-1b6-4059a80bfd280\""
75
+ :body: path1 response
76
+ :http_version: "1.1"
77
+ - !ruby/struct:VCR::HTTPInteraction
78
+ :request: !ruby/struct:VCR::Request
79
+ :method: :post
80
+ :uri: http://example.com:80/path2
81
+ :body:
82
+ :headers:
83
+ :response: !ruby/struct:VCR::Response
84
+ :status: !ruby/struct:VCR::ResponseStatus
85
+ :code: 200
86
+ :message: OK
87
+ :headers:
88
+ etag:
89
+ - "\"24ec5-1b6-4059a80bfd280\""
90
+ :body: path2 response
91
+ :http_version: "1.1"
92
+ - !ruby/struct:VCR::HTTPInteraction
93
+ :request: !ruby/struct:VCR::Request
94
+ :method: :post
95
+ :uri: http://example.com:80/uri1
96
+ :body:
97
+ :headers:
98
+ :response: !ruby/struct:VCR::Response
99
+ :status: !ruby/struct:VCR::ResponseStatus
100
+ :code: 200
101
+ :message: OK
102
+ :headers:
103
+ etag:
104
+ - "\"24ec5-1b6-4059a80bfd280\""
105
+ :body: uri1 response
106
+ :http_version: "1.1"
107
+ - !ruby/struct:VCR::HTTPInteraction
108
+ :request: !ruby/struct:VCR::Request
109
+ :method: :post
110
+ :uri: http://example.com:80/uri2
111
+ :body:
112
+ :headers:
113
+ :response: !ruby/struct:VCR::Response
114
+ :status: !ruby/struct:VCR::ResponseStatus
115
+ :code: 200
116
+ :message: OK
117
+ :headers:
118
+ etag:
119
+ - "\"24ec5-1b6-4059a80bfd280\""
120
+ :body: uri2 response
121
+ :http_version: "1.1"
122
+ - !ruby/struct:VCR::HTTPInteraction
123
+ :request: !ruby/struct:VCR::Request
124
+ :method: :post
125
+ :uri: http://example.com:80/
126
+ :body: param=val1
127
+ :headers:
128
+ :response: !ruby/struct:VCR::Response
129
+ :status: !ruby/struct:VCR::ResponseStatus
130
+ :code: 200
131
+ :message: OK
132
+ :headers:
133
+ etag:
134
+ - "\"24ec5-1b6-4059a80bfd280\""
135
+ :body: val1 body response
136
+ :http_version: "1.1"
137
+ - !ruby/struct:VCR::HTTPInteraction
138
+ :request: !ruby/struct:VCR::Request
139
+ :method: :post
140
+ :uri: http://example.com:80/
141
+ :body: param=val2
142
+ :headers:
143
+ :response: !ruby/struct:VCR::Response
144
+ :status: !ruby/struct:VCR::ResponseStatus
145
+ :code: 200
146
+ :message: OK
147
+ :headers:
148
+ etag:
149
+ - "\"24ec5-1b6-4059a80bfd280\""
150
+ :body: val2 body response
151
+ :http_version: "1.1"
152
+ - !ruby/struct:VCR::HTTPInteraction
153
+ :request: !ruby/struct:VCR::Request
154
+ :method: :post
155
+ :uri: http://example.com:80/
156
+ :body:
157
+ :headers:
158
+ :x-http-header1:
159
+ - val1
160
+ :response: !ruby/struct:VCR::Response
161
+ :status: !ruby/struct:VCR::ResponseStatus
162
+ :code: 200
163
+ :message: OK
164
+ :headers:
165
+ etag:
166
+ - "\"24ec5-1b6-4059a80bfd280\""
167
+ :body: val1 header response
168
+ :http_version: "1.1"
169
+ - !ruby/struct:VCR::HTTPInteraction
170
+ :request: !ruby/struct:VCR::Request
171
+ :method: :post
172
+ :uri: http://example.com:80/
173
+ :body:
174
+ :headers:
175
+ :x-http-header1:
176
+ - val2
177
+ :response: !ruby/struct:VCR::Response
178
+ :status: !ruby/struct:VCR::ResponseStatus
179
+ :code: 200
180
+ :message: OK
181
+ :headers:
182
+ etag:
183
+ - "\"24ec5-1b6-4059a80bfd280\""
184
+ :body: val2 header response
185
+ :http_version: "1.1"