mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-21 01:51:57 +03:00
13 lines
1.2 KiB
HTML
13 lines
1.2 KiB
HTML
<pre><code class="language-hurl"><span class="hurl-entry"><span class="request"><span class="line"></span><span class="comment"># Sample from https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PATCH</span>
|
|
<span class="line"><span class="method">PATCH</span> <span class="url">http://localhost:8000/patch/file.txt</span></span>
|
|
<span class="line"><span class="string">Host</span><span>:</span> <span class="string">www.example.com</span></span>
|
|
<span class="line"><span class="string">Content-Type</span><span>:</span> <span class="string">application/example</span></span>
|
|
<span class="line"><span class="string">If-Match</span><span>:</span> <span class="string">"e0023aa4e"</span></span>
|
|
</span><span class="response"><span class="line"></span>
|
|
<span class="line"></span>
|
|
<span class="line"><span class="version">HTTP/1.0</span> <span class="number">204</span></span>
|
|
<span class="line"><span class="string">Content-Location</span><span>:</span> <span class="string">/file.txt</span></span>
|
|
<span class="line"><span class="string">ETag</span><span>:</span> <span class="string">"e0023aa4f"</span></span>
|
|
</span></span><span class="line"></span>
|
|
<span class="line"></span>
|
|
</code></pre> |