Skip to content

Commit

Permalink
Added errorIfNot2XX option to HTTP binding docs (#3741) (#4056)
Browse files Browse the repository at this point in the history
* Added errorIfNot2XX option to HTTP binding docs



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



---------

Signed-off-by: Wim Vande Casteele <[email protected]>
Signed-off-by: Mark Fussell <[email protected]>
Signed-off-by: Artur Souza <[email protected]>
Co-authored-by: wimvc1 <[email protected]>
Co-authored-by: Hannah Hunter <[email protected]>
Co-authored-by: Mark Fussell <[email protected]>
  • Loading branch information
4 people authored Mar 1, 2024
1 parent a4dfdaf commit 06e114e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ spec:
# key: "mytoken"
#- name: securityTokenHeader
# value: "Authorization: Bearer" # OPTIONAL <header name for the security token>
#- name: errorIfNot2XX
# value: "false" # OPTIONAL
```

## Spec metadata fields
Expand All @@ -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:

Expand Down

0 comments on commit 06e114e

Please sign in to comment.