Change raw string body for multiline string body.

This commit is contained in:
jcamiel 2022-11-05 18:43:29 +01:00
parent 802391d7ee
commit 403db2e131
No known key found for this signature in database
GPG Key ID: 07FF11CFD55356CC
6 changed files with 20 additions and 20 deletions

View File

@ -323,7 +323,7 @@ POST https://example.org/upload
[MultipartFormData]
field1: value1
field2: file,example.txt;
# On can specify the file content type:
# One can specify the file content type:
field3: file,example.zip; application/zip
```
@ -356,7 +356,7 @@ file,data.json;
### Templating a JSON / XML Body
Using templates with [JSON body] or [XML body] is not currently supported in Hurl.
Besides, you can use templates in [raw string body] with variables to send a JSON or XML body:
Besides, you can use templates in [multiline string body] with variables to send a JSON or XML body:
~~~hurl
PUT https://example.org/api/hits
@ -392,7 +392,7 @@ Resulting in a PUT request with the following JSON body:
}
```
[Doc](https://hurl.dev/docs/request.html#raw-string-body)
[Doc](https://hurl.dev/docs/request.html#multiline-string-body)
## Testing Response
@ -1005,7 +1005,7 @@ Please follow the [contrib on Windows section].
[libcurl]: https://curl.se/libcurl/
[JSON body]: https://hurl.dev/docs/request.html#json-body
[XML body]: https://hurl.dev/docs/request.html#xml-body
[raw string body]: https://hurl.dev/docs/request.html#raw-string-body
[multiline string body]: https://hurl.dev/docs/request.html#multiline-string-body
[predicates]: https://hurl.dev/docs/asserting-response.html#predicates
[JSONPath]: https://goessner.net/articles/JsonPath/
[Basic authentication]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication#basic_authentication_scheme

View File

@ -664,7 +664,7 @@ HTTP/1.1 200
</catalog>
~~~
### Raw string body
### Multiline string body
~~~hurl
GET https://example.org/models
@ -679,7 +679,7 @@ Year,Make,Model,Description,Price
```
~~~
The standard usage of a raw string is :
The standard usage of a multiline string is :
~~~
```
@ -706,7 +706,7 @@ or
~~~
Finally, raw string can be used without any newline:
Finally, multiline can be used without any newline:
~~~
```line```

View File

@ -392,7 +392,7 @@ SOAPAction: "http://www.w3.org/2003/05/soap-envelope"
</soap:Envelope>
~~~
#### Raw string body
#### Multiline string body
For text based body that are not JSON nor XML, one can used multiline string, started and ending with
<code>&#96;&#96;&#96;</code>.
@ -408,7 +408,7 @@ Year,Make,Model,Description,Price
```
~~~
The standard usage of a raw string is:
The standard usage of a multiline string is:
~~~
```
@ -435,7 +435,7 @@ or
~~~
Finally, raw string can be used without any newline:
Finally, multiline string can be used without any newline:
~~~
```line```

View File

@ -107,7 +107,7 @@ POST https://example.org/upload
[MultipartFormData]
field1: value1
field2: file,example.txt;
# On can specify the file content type:
# One can specify the file content type:
field3: file,example.zip; application/zip
```
@ -140,7 +140,7 @@ file,data.json;
### Templating a JSON / XML Body
Using templates with [JSON body] or [XML body] is not currently supported in Hurl.
Besides, you can use templates in [raw string body] with variables to send a JSON or XML body:
Besides, you can use templates in [multiline string body] with variables to send a JSON or XML body:
~~~hurl
PUT https://example.org/api/hits
@ -176,7 +176,7 @@ Resulting in a PUT request with the following JSON body:
}
```
[Doc](/docs/request.md#raw-string-body)
[Doc](/docs/request.md#multiline-string-body)
## Testing Response
@ -402,7 +402,7 @@ bytes startsWith hex,efbbbf;
[JSON body]: /docs/request.md#json-body
[XML body]: /docs/request.md#xml-body
[raw string body]: /docs/request.md#raw-string-body
[multiline string body]: /docs/request.md#multiline-string-body
[predicates]: /docs/asserting-response.md#predicates
[JSONPath]: https://goessner.net/articles/JsonPath/
[Basic authentication]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication#basic_authentication_scheme

View File

@ -155,7 +155,7 @@ $ hurl test.hurl
## Templating Body
Using templates with [JSON body] or [XML body] is not currently supported in Hurl.
Besides, you can use templates in [raw string body] with variables to send a JSON or XML body:
Besides, you can use templates in [multiline string body] with variables to send a JSON or XML body:
~~~hurl
PUT https://example.org/api/hits
@ -193,4 +193,4 @@ Resulting in a PUT request with the following JSON body:
[JSONPath]: /docs/asserting-response.md#jsonpath-assert
[JSON body]: /docs/request.md#json-body
[XML body]: /docs/request.md#xml-body
[raw string body]: /docs/request.md#raw-string-body
[multiline string body]: /docs/request.md#multiline-string-body

View File

@ -323,7 +323,7 @@ POST https://example.org/upload
[MultipartFormData]
field1: value1
field2: file,example.txt;
# On can specify the file content type:
# One can specify the file content type:
field3: file,example.zip; application/zip
```
@ -356,7 +356,7 @@ file,data.json;
### Templating a JSON / XML Body
Using templates with [JSON body] or [XML body] is not currently supported in Hurl.
Besides, you can use templates in [raw string body] with variables to send a JSON or XML body:
Besides, you can use templates in [multiline string body] with variables to send a JSON or XML body:
~~~hurl
PUT https://example.org/api/hits
@ -392,7 +392,7 @@ Resulting in a PUT request with the following JSON body:
}
```
[Doc](https://hurl.dev/docs/request.html#raw-string-body)
[Doc](https://hurl.dev/docs/request.html#multiline-string-body)
## Testing Response
@ -1005,7 +1005,7 @@ Please follow the [contrib on Windows section].
[libcurl]: https://curl.se/libcurl/
[JSON body]: https://hurl.dev/docs/request.html#json-body
[XML body]: https://hurl.dev/docs/request.html#xml-body
[raw string body]: https://hurl.dev/docs/request.html#raw-string-body
[multiline string body]: https://hurl.dev/docs/request.html#multiline-string-body
[predicates]: https://hurl.dev/docs/asserting-response.html#predicates
[JSONPath]: https://goessner.net/articles/JsonPath/
[Basic authentication]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication#basic_authentication_scheme