From 5de4fdfd89eb3254d2afabab332a632f404c9baa Mon Sep 17 00:00:00 2001 From: wimvc1 <86042870+wimvc1@users.noreply.github.com> Date: Mon, 25 Sep 2023 05:53:15 +0200 Subject: [PATCH] Added errorIfNot2XX option to HTTP binding docs (#3741) * Added errorIfNot2XX option to HTTP binding docs Signed-off-by: Wim Vande Casteele * Update daprdocs/content/en/reference/components-reference/supported-bindings/http.md Signed-off-by: Mark Fussell --------- Signed-off-by: Wim Vande Casteele Signed-off-by: Mark Fussell Co-authored-by: Hannah Hunter <94493363+hhunter-ms@users.noreply.github.com> Co-authored-by: Mark Fussell --- .../components-reference/supported-bindings/http.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/daprdocs/content/en/reference/components-reference/supported-bindings/http.md b/daprdocs/content/en/reference/components-reference/supported-bindings/http.md index 39355955457..4211e3c543f 100644 --- a/daprdocs/content/en/reference/components-reference/supported-bindings/http.md +++ b/daprdocs/content/en/reference/components-reference/supported-bindings/http.md @@ -38,8 +38,10 @@ spec: key: "mytoken" - name: securityTokenHeader value: "Authorization: Bearer" # OPTIONAL
- - 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: