From 993a0e82c010f4c937cab91497ce5adf143c1ef4 Mon Sep 17 00:00:00 2001 From: richgo Date: Fri, 5 Nov 2021 18:07:59 +0000 Subject: [PATCH] Update middleware-opa.md (#1833) added body to struct and updated HTTPRequest docs to reflect. Co-authored-by: Yaron Schneider --- .../supported-middleware/middleware-opa.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/daprdocs/content/en/reference/components-reference/supported-middleware/middleware-opa.md b/daprdocs/content/en/reference/components-reference/supported-middleware/middleware-opa.md index 6d7fb81fa..3ecf58332 100644 --- a/daprdocs/content/en/reference/components-reference/supported-middleware/middleware-opa.md +++ b/daprdocs/content/en/reference/components-reference/supported-middleware/middleware-opa.md @@ -99,7 +99,7 @@ This middleware supplies a [`HTTPRequest`](#httprequest) as input. ### HTTPRequest -The `HTTPRequest` input contains all the relevant information about an incoming HTTP Request except it's body. +The `HTTPRequest` input contains all the relevant information about an incoming HTTP Request. ```go type Input struct { @@ -123,6 +123,8 @@ type HTTPRequest struct { headers map[string]string // The request scheme (e.g. http, https) scheme string + // The request body (e.g. http, https) + body string } ```