mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-05-05 14:28:31 +00:00
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.
This commit is contained in:
parent
32cac749fd
commit
1575bceff3
@ -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.
|
Você pode enviar dados nos mais diversos formatos, como JSON, formulários ou arquivos.
|
||||||
|
|
||||||
### JSON Data
|
### Enviando JSON
|
||||||
|
|
||||||
```bash
|
```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
|
```bash
|
||||||
http -f POST https://api.example.com/submit name=John email=john@example.com
|
http -f POST https://api.example.com/submit name=John email=john@example.com
|
||||||
```
|
```
|
||||||
|
|
||||||
### Files
|
### Enviando Arquivos
|
||||||
|
|
||||||
```bash
|
```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
|
### 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"
|
http GET https://api.example.com/posts Authorization:"Bearer Token" User-Agent:"HTTPie"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Basic Authentication
|
### Autenticação Básica
|
||||||
|
|
||||||
```bash
|
```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
|
```bash
|
||||||
https -A bearer -a token https://api.example.com/admin
|
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
|
```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).
|
- [Github](https://github.com/httpie).
|
||||||
|
Loading…
Reference in New Issue
Block a user