From 536bcbae3f8b4eb482efc71b750f57bc167fecce Mon Sep 17 00:00:00 2001 From: Wim Vande Casteele Date: Mon, 18 Sep 2023 08:00:08 +0200 Subject: [PATCH 1/2] Added errorIfNot2XX option to HTTP binding docs Signed-off-by: Wim Vande Casteele --- .../reference/components-reference/supported-bindings/http.md | 3 +++ 1 file changed, 3 insertions(+) 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..2db12954d58 100644 --- a/daprdocs/content/en/reference/components-reference/supported-bindings/http.md +++ b/daprdocs/content/en/reference/components-reference/supported-bindings/http.md @@ -40,6 +40,8 @@ spec: value: "Authorization: Bearer" # OPTIONAL
- name: direction 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: From 6fe9599c4be795256ff37128105e2a1e592aa8d1 Mon Sep 17 00:00:00 2001 From: Mark Fussell Date: Sun, 24 Sep 2023 20:41:10 -0700 Subject: [PATCH 2/2] Update daprdocs/content/en/reference/components-reference/supported-bindings/http.md Signed-off-by: Mark Fussell --- .../reference/components-reference/supported-bindings/http.md | 2 +- 1 file changed, 1 insertion(+), 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 2db12954d58..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,7 +38,7 @@ spec: key: "mytoken" - name: securityTokenHeader value: "Authorization: Bearer" # OPTIONAL
- - name: direction + - name: direction # OPTIONAL value: "output" - name: errorIfNot2XX value: "false" # OPTIONAL