From 06e114e1e36304a24096bc070e0490c2a3877318 Mon Sep 17 00:00:00 2001 From: Artur Souza Date: Thu, 29 Feb 2024 17:50:51 -0800 Subject: [PATCH] Added errorIfNot2XX option to HTTP binding docs (#3741) (#4056) * Added errorIfNot2XX option to HTTP binding docs * Update daprdocs/content/en/reference/components-reference/supported-bindings/http.md --------- Signed-off-by: Wim Vande Casteele Signed-off-by: Mark Fussell Signed-off-by: Artur Souza Co-authored-by: wimvc1 <86042870+wimvc1@users.noreply.github.com> Co-authored-by: Hannah Hunter <94493363+hhunter-ms@users.noreply.github.com> Co-authored-by: Mark Fussell --- .../reference/components-reference/supported-bindings/http.md | 4 +++- 1 file changed, 3 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 7f5f2972968..1b9ad8fb768 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: # key: "mytoken" #- name: securityTokenHeader # value: "Authorization: Bearer" # OPTIONAL
+ #- name: errorIfNot2XX + # value: "false" # OPTIONAL ``` ## Spec metadata fields @@ -54,8 +56,8 @@ spec: | `MTLSRenegotiation` | N | Output | Type of mTLS renegotiation to be used | `RenegotiateOnceAsClient` | `securityToken` | N | Output | The value of a token to be added to a HTTP request as a header. Used together with `securityTokenHeader` | | `securityTokenHeader` | N | Output | The name of the header for `securityToken` on a HTTP request | +| `errorIfNot2XX` | N | Output | If a binding error should be thrown when the response is not in the 2xx range. Defaults to `true` | -### How to configure mTLS-related fields in metadata The values for **MTLSRootCA**, **MTLSClientCert** and **MTLSClientKey** can be provided in three ways: