Added errorIfNot2XX option to HTTP binding docs (#3741)

* Added errorIfNot2XX option to HTTP binding docs

Signed-off-by: Wim Vande Casteele <wim.vande.casteele@randstadgroup.be>

* Update daprdocs/content/en/reference/components-reference/supported-bindings/http.md

Signed-off-by: Mark Fussell <markfussell@gmail.com>

---------

Signed-off-by: Wim Vande Casteele <wim.vande.casteele@randstadgroup.be>
Signed-off-by: Mark Fussell <markfussell@gmail.com>
Co-authored-by: Hannah Hunter <94493363+hhunter-ms@users.noreply.github.com>
Co-authored-by: Mark Fussell <markfussell@gmail.com>
This commit is contained in:
wimvc1 2023-09-25 05:53:15 +02:00 committed by GitHub
parent f3cb664dcc
commit 5de4fdfd89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -38,8 +38,10 @@ spec:
key: "mytoken"
- name: securityTokenHeader
value: "Authorization: Bearer" # OPTIONAL <header name for the security token>
- name: direction
- name: direction # OPTIONAL
value: "output"
- name: errorIfNot2XX
value: "false" # OPTIONAL
```
## Spec metadata fields
@ -54,6 +56,7 @@ spec:
| `securityToken` | N | Output |The value of a token to be added to an HTTP request as a header. Used together with `securityTokenHeader` |
| `securityTokenHeader`| N | Output |The name of the header for `securityToken` on an HTTP request that |
| `direction`| N | Output |The direction of the binding | `"output"`
| `errorIfNot2XX`| N | Output |If a binding error should be thrown when the response is not in the 2xx range. Defaults to `true` | `false`, `true`
### How to configure MTLS related fields in Metadata
The values for **MTLSRootCA**, **MTLSClientCert** and **MTLSClientKey** can be provided in three ways: