mirror of https://github.com/dapr/docs.git
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:
parent
d0bd9c0e08
commit
993a0e82c0
|
|
@ -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
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue