Update middleware-opa.md (#1833)

added body to struct and updated HTTPRequest docs to reflect.

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
This commit is contained in:
richgo 2021-11-05 18:07:59 +00:00 committed by GitHub
parent d0bd9c0e08
commit 993a0e82c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -99,7 +99,7 @@ This middleware supplies a [`HTTPRequest`](#httprequest) as input.
### HTTPRequest ### 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 ```go
type Input struct { type Input struct {
@ -123,6 +123,8 @@ type HTTPRequest struct {
headers map[string]string headers map[string]string
// The request scheme (e.g. http, https) // The request scheme (e.g. http, https)
scheme string scheme string
// The request body (e.g. http, https)
body string
} }
``` ```