mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-26 00:22:10 +03:00
Change raw string body for multiline string body.
This commit is contained in:
parent
802391d7ee
commit
403db2e131
@ -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
|
||||
|
@ -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```
|
||||
|
@ -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>```</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```
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user