From 1575bceff3e6d0676884d6b0300bece62f9930ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ada=C3=ADas=20Magdiel?= Date: Fri, 15 Mar 2024 08:41:01 -0300 Subject: docs(httpie-pt): Add Portuguese translation - Updated the Portuguese translation for better clarity and consistency throughout the document. - Updated references to HTTP methods for sending JSON, forms, and files to use native Portuguese terms. - Improved the translations of headers, authentication methods, and response handling instructions to make them more understandable for Portuguese speakers. - Updated URLs in the "Further Reading" section to point to the correct Portuguese resources. --- pt-br/httpie-pt.html.markdown | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/pt-br/httpie-pt.html.markdown b/pt-br/httpie-pt.html.markdown index 9a601fb2..9ef515bc 100644 --- a/pt-br/httpie-pt.html.markdown +++ b/pt-br/httpie-pt.html.markdown @@ -64,27 +64,27 @@ http https://api.example.com/search q==httpie per_page==20 Você pode enviar dados nos mais diversos formatos, como JSON, formulários ou arquivos. -### JSON Data +### Enviando JSON ```bash -http POST https://api.example.com/posts title="Hello" body="World" +http POST https://api.example.com/posts title="Olá" body="Mundo" ``` -### Form Data +### Enviando Formulário ```bash http -f POST https://api.example.com/submit name=John email=john@example.com ``` -### Files +### Enviando Arquivos ```bash -http --form POST https://api.example.com/upload file@/path/to/file.txt +http --form POST https://api.example.com/upload file@/caminho/do/arquivo.txt ``` -## Headers and Authentication +## Headers e Autenticação -HTTPie allows you to set headers and handle authentication easily. +HTTPie permite que você adicione headers e lide com autenticação de uma forma fácil. ### Headers @@ -92,31 +92,31 @@ HTTPie allows you to set headers and handle authentication easily. http GET https://api.example.com/posts Authorization:"Bearer Token" User-Agent:"HTTPie" ``` -### Basic Authentication +### Autenticação Básica ```bash -http -a username:password GET https://api.example.com/protected +http -a usuario:senha GET https://api.example.com/protected ``` -### Bearer Authentication +### Autenticação Bearer ```bash https -A bearer -a token https://api.example.com/admin ``` -## Response Handling +## Lidando com Respostas -HTTPie provides various options for handling responses. +HTTPie fornece várias opções para lidar com respostas. ```bash -http GET https://api.example.com/data Accept:application/json # Pretty Print JSON +http GET https://api.example.com/data Accept:application/json # Exibe o JSON de uma forma legível -http GET https://api.example.com/image --output image.png # Save Response to File +http GET https://api.example.com/image --output image.png # Grava a resposta em um arquivo -http --follow GET https://example.com # Follow Redirects +http --follow GET https://example.com # Segue redirecionamentos ``` -## Further Reading +## Leitura Adicional -- [Official Documentation](https://httpie.io/docs/cli). +- [Documentação Oficial](https://httpie.io/docs/cli). - [Github](https://github.com/httpie). -- cgit v1.2.3