2021-09-21 07:36:53 +03:00
|
|
|
<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>
|
2022-11-11 00:28:57 +03:00
|
|
|
</span><span class="response"><span class="line"><span class="version">HTTP</span> <span class="number">200</span></span>
|
2023-06-07 10:14:06 +03:00
|
|
|
<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>
|
2022-12-02 22:50:27 +03:00
|
|
|
<span class="line"><span class="string">`Hello World!`</span></span>
|
2021-09-21 07:36:53 +03:00
|
|
|
</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>
|
2022-11-11 00:28:57 +03:00
|
|
|
</span><span class="response"><span class="line"><span class="version">HTTP</span> <span class="number">200</span></span>
|
2021-09-21 07:36:53 +03:00
|
|
|
<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>
|
2022-11-11 00:28:57 +03:00
|
|
|
</span><span class="response"><span class="line"><span class="version">HTTP</span> <span class="number">200</span></span>
|
2021-09-21 07:36:53 +03:00
|
|
|
<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>
|
2022-11-11 00:28:57 +03:00
|
|
|
</span><span class="response"><span class="line"><span class="version">HTTP</span> <span class="number">200</span></span>
|
2021-09-21 07:36:53 +03:00
|
|
|
<span class="line">base64, <span class="base64">SGVsbG8gV29ybGQh</span>;</span>
|
2022-10-24 12:37:11 +03:00
|
|
|
</span></span></code></pre>
|