forked from vcr/vcr
/
example.yml
132 lines (129 loc) · 3.08 KB
/
example.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
---
- !ruby/struct:VCR::RecordedResponse
method: :get
uri: http://example.com:80/
response: !ruby/object:Net::HTTPOK
body: |
<HTML>
<HEAD>
<TITLE>Example Web Page</TITLE>
</HEAD>
<body>
<p>You have reached this web page by typing "example.com",
"example.net",
or "example.org" into your web browser.</p>
<p>These domain names are reserved for use in documentation and are not available
for registration. See <a href="http://www.rfc-editor.org/rfc/rfc2606.txt">RFC
2606</a>, Section 3.</p>
</BODY>
</HTML>
body_exist: true
code: "200"
header:
last-modified:
- Tue, 15 Nov 2005 13:24:10 GMT
connection:
- Keep-Alive
date:
- Thu, 25 Feb 2010 07:52:38 GMT
content-type:
- text/html; charset=UTF-8
etag:
- "\"24ec5-1b6-4059a80bfd280\""
server:
- Apache/2.2.3 (CentOS)
content-length:
- "438"
age:
- "3009"
accept-ranges:
- bytes
http_version: "1.1"
message: OK
read: true
socket:
request_body:
request_headers:
accept:
- "*/*"
connection:
- close
host:
- example.com
- !ruby/struct:VCR::RecordedResponse
method: :get
uri: http://example.com:80/foo
response: !ruby/object:Net::HTTPNotFound
body: |
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /foo was not found on this server.</p>
<hr>
<address>Apache/2.2.3 (CentOS) Server at example.com Port 80</address>
</body></html>
body_exist: true
code: "404"
header:
connection:
- close
content-type:
- text/html; charset=iso-8859-1
date:
- Thu, 25 Feb 2010 07:52:38 GMT
server:
- Apache/2.2.3 (CentOS)
content-length:
- "277"
http_version: "1.1"
message: Not Found
read: true
socket:
request_body:
request_headers:
accept:
- "*/*"
connection:
- close
host:
- example.com
- !ruby/struct:VCR::RecordedResponse
method: :get
uri: http://example.com:80/
response: !ruby/object:Net::HTTPOK
body: Another example.com response
body_exist: true
code: "200"
header:
last-modified:
- Tue, 15 Nov 2005 13:24:10 GMT
connection:
- Keep-Alive
date:
- Thu, 25 Feb 2010 07:52:38 GMT
content-type:
- text/html; charset=UTF-8
etag:
- "\"24ec5-1b6-4059a80bfd280\""
server:
- Apache/2.2.3 (CentOS)
content-length:
- "438"
age:
- "3009"
accept-ranges:
- bytes
http_version: "1.1"
message: OK
read: true
socket:
request_body:
request_headers:
accept:
- "*/*"
connection:
- close
host:
- example.com