1
0
mirror of https://github.com/httpie/cli.git synced 2025-08-10 22:42:05 +02:00

docs: fix typo (#1548)

This commit is contained in:
Aolin
2024-03-04 22:37:15 +08:00
committed by GitHub
parent 7a234d60da
commit 2db28ef692

View File

@@ -477,7 +477,7 @@ $ http pie.dev/get text==@files/text.txt
### URL shortcuts for `localhost`
Additionally, curl-like shorthand for localhost is supported.
This means that, for example, `:3000` would expand to `http://localhost:3000`
This means that, for example, `:3000` would expand to `http://localhost:3000`.
If the port is omitted, then port 80 is assumed.
```bash
@@ -530,7 +530,7 @@ $ http-unix %2Fvar%2Frun%2Fdocker.sock/info
### `--path-as-is`
The standard behavior of HTTP clients is to normalize the path portion of URLs by squashing dot segments as a typically filesystem would:
The standard behavior of HTTP clients is to normalize the path portion of URLs by squashing dot segments as a typical filesystem would:
```bash
$ http -v example.org/./../../etc/password
@@ -583,7 +583,7 @@ Note that the structured data fields aren’t the only way to specify request da
### File based separators
Using file contents as values for specific fields is a very common use case, which can be achieved through adding the `@` suffix to
the operators above. For example instead of using a static string as the value for some header, you can use `:@` operator
the operators above. For example, instead of using a static string as the value for some header, you can use `:@` operator
to pass the desired value from a file.
```bash
@@ -749,7 +749,7 @@ $ http --offline --print=B pie.dev/post \
```
```json
{
{
"category": "tools",
"search": {
"keywords": [
@@ -1235,7 +1235,7 @@ by individual commands when sending a request instead of being joined together.
Generating raw requests that can be sent with any other client:
```bash
```bash
# 1. save a raw request to a file:
$ http --offline POST pie.dev/post hello=world > request.http
```