mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-19 00:22:10 +03:00
62243800e6
These tests should be covered in the .hurl integ tests.
21 lines
2.0 KiB
HTML
21 lines
2.0 KiB
HTML
<pre><code class="language-hurl"><span class="hurl-entry"><span class="request"><span class="line"><span class="method">GET</span> <span class="url">http://localhost:8000/hello</span></span>
|
|
</span><span class="response"><span class="line"><span class="version">HTTP</span> <span class="number">200</span></span>
|
|
<span class="line"><span class="string">Content-Type</span>: <span class="string">text/html; charset=utf-8</span></span>
|
|
<span class="line"><span class="string">Content-Length</span>: <span class="string">12</span></span>
|
|
<span class="line"><span class="section-header">[Asserts]</span></span>
|
|
<span class="line"><span class="query-type">header</span> <span class="string">"Date"</span> <span class="predicate-type">exists</span></span>
|
|
<span class="line"><span class="string">`Hello World!`</span></span>
|
|
</span></span><span class="hurl-entry"><span class="request"><span class="line"></span>
|
|
<span class="line"><span class="method">GET</span> <span class="url">http://localhost:8000/hello</span></span>
|
|
</span><span class="response"><span class="line"><span class="version">HTTP</span> <span class="number">200</span></span>
|
|
<span class="line">file, <span class="filename">data.txt</span>;</span>
|
|
</span></span><span class="hurl-entry"><span class="request"><span class="line"></span>
|
|
<span class="line"><span class="method">GET</span> <span class="url">http://localhost:8000/hello</span></span>
|
|
</span><span class="response"><span class="line"><span class="version">HTTP</span> <span class="number">200</span></span>
|
|
<span class="line">hex, <span class="hex">48656c6c6f20576f726c6421</span>;</span>
|
|
</span></span><span class="hurl-entry"><span class="request"><span class="line"></span>
|
|
<span class="line"><span class="method">GET</span> <span class="url">http://localhost:8000/hello</span></span>
|
|
</span><span class="response"><span class="line"><span class="version">HTTP</span> <span class="number">200</span></span>
|
|
<span class="line">base64, <span class="base64">SGVsbG8gV29ybGQh</span>;</span>
|
|
</span></span></code></pre>
|