diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:42:52 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:42:52 -0500 |
commit | 074785cea106179cb3305637055ab0a009ca74f2 (patch) | |
tree | e6ae371cccd642aa2b67f39752a2cdf1fd4eb040 /files/pt-br/web/http/headers/link | |
parent | da78a9e329e272dedb2400b79a3bdeebff387d47 (diff) | |
download | translated-content-074785cea106179cb3305637055ab0a009ca74f2.tar.gz translated-content-074785cea106179cb3305637055ab0a009ca74f2.tar.bz2 translated-content-074785cea106179cb3305637055ab0a009ca74f2.zip |
initial commit
Diffstat (limited to 'files/pt-br/web/http/headers/link')
-rw-r--r-- | files/pt-br/web/http/headers/link/index.html | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/files/pt-br/web/http/headers/link/index.html b/files/pt-br/web/http/headers/link/index.html new file mode 100644 index 0000000000..3df78e1a35 --- /dev/null +++ b/files/pt-br/web/http/headers/link/index.html @@ -0,0 +1,77 @@ +--- +title: Link +slug: Web/HTTP/Headers/Link +tags: + - Cabeçalho HTTP + - HTTP + - Link + - Rascunho + - Referencia +translation_of: Web/HTTP/Headers/Link +--- +<div>{{HTTPSidebar}}</div> + +<p>O cabeçalho de entidade <strong><code>Link</code></strong> provém maneiras para serializar um ou mais links em cabeçalhos HTTP. Ele é semanticamente equivalente ao elemento HTML {{HTMLElement("link")}}.</p> + +<h2 id="Sintaxe">Sintaxe</h2> + +<pre class="syntaxbox notranslate">Link: < <var>uri-reference</var> >; <var>param1</var>=<var>value1</var>; <var>param2</var>="<var>value2</var>"</pre> + +<dl> + <dt><code><uri-reference></code></dt> + <dd>A referência da URI, precisa ser encapsulado entre <code><</code> e <code>></code>.</dd> +</dl> + +<h3 id="Parâmetros">Parâmetros</h3> + +<p>O cabeçalho <em>link</em> contém parâmetros, os quais são separados com <code>;</code> e são equivalentes aos atributos do elemento {{HTMLElement("link")}}.</p> + +<h2 id="Exemplos">Exemplos</h2> + +<p>A URI precisa ser encapsulado entre <code><</code> e <code>></code>:</p> + +<pre class="brush: http; no-line-numbers example-good notranslate">Link: <https://example.com>; rel="preconnect"</pre> + +<pre class="brush: http; no-line-numbers example-bad notranslate">Link: https://bad.example; rel="preconnect"</pre> + +<h3 id="Especificando_múltiplos_links">Especificando múltiplos <em>links</em></h3> + +<p>Você pode especificar múltiplos <em>links</em> separados por vírgulas, por exemplo:</p> + +<pre class="notranslate">Link: <https://one.example.com>; rel="preconnect", <https://two.example.com>; rel="preconnect", <https://three.example.com>; rel="preconnect"</pre> + +<h2 id="Especificações">Especificações</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">Especificação</th> + <th scope="col">Status</th> + <th scope="col">Comentários</th> + </tr> + </thead> + <tbody> + <tr> + <td>{{RFC(8288, "Link Serialisation in HTTP Headers", 3)}}</td> + <td><span class="spec-RFC">IETF RFC</span></td> + <td></td> + </tr> + <tr> + <td>{{RFC(5988, "The Link Header Field", 5)}}</td> + <td><span class="spec-RFC">IETF RFC</span></td> + <td>Definição inicial</td> + </tr> + </tbody> +</table> + +<h2 id="Compatibilidade_de_navegador">Compatibilidade de navegador</h2> + + + +<p>{{Compat("http.headers.Link")}}</p> + +<h2 id="Veja_também">Veja também</h2> + +<ul> + <li>{{HTTPStatus(103, "103 Early Hints")}}</li> +</ul> |