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/bytes</span></span>
|
|
|
|
</span><span class="response"><span class="line"><span class="version">HTTP/1.0</span> <span class="number">200</span></span>
|
|
|
|
<span class="line"><span class="string">Content-Type</span><span>:</span> <span class="string">application/octet-stream</span></span>
|
|
|
|
<span class="line section-header">[Asserts]</span>
|
2022-03-28 19:04:35 +03:00
|
|
|
<span class="line"><span class="query-type">bytes</span> <span class="predicate-type">==</span> hex,<span class="hex">010203</span>;</span>
|
|
|
|
<span class="line"><span class="query-type">bytes</span> <span class="predicate-type">==</span> base64,<span class="base64">AQID</span>;</span>
|
2021-09-21 07:36:53 +03:00
|
|
|
<span class="line"><span class="query-type">bytes</span> <span class="subquery-type">count</span> <span class="predicate-type">==</span> <span class="number">3</span></span>
|
|
|
|
<span class="line"><span class="query-type">bytes</span> <span class="predicate-type">startsWith</span> hex,<span class="hex">01</span>;</span>
|
|
|
|
<span class="line"><span class="query-type">bytes</span> <span class="predicate-type">endsWith</span> hex,<span class="hex">03</span>;</span>
|
|
|
|
<span class="line"><span class="query-type">bytes</span> <span class="predicate-type">contains</span> hex,<span class="hex">02</span>;</span>
|
2022-03-28 19:04:35 +03:00
|
|
|
<span class="line"><span class="query-type">sha256</span> <span class="predicate-type">==</span> hex,<span class="hex">039058c6f2c0cb492c533b0a4d14ef77cc0f78abccced5287d84a1a2011cfb81</span>;</span>
|
|
|
|
<span class="line"><span class="query-type">md5</span> <span class="predicate-type">==</span> hex,<span class="hex">5289df737df57326fcdd22597afb1fac</span>;</span>
|
2021-09-21 07:36:53 +03:00
|
|
|
</span></span></code></pre>
|