mirror of https://github.com/dapr/docs.git
refine code align in middleware concept (#1066)
* refine code align * refine code align
This commit is contained in:
parent
bee1ae0830
commit
1f0b5e8879
|
@ -49,9 +49,9 @@ Your handler implementation can include any inbound logic, outbound logic, or bo
|
|||
func GetHandler(metadata Metadata) fasthttp.RequestHandler {
|
||||
return func(h fasthttp.RequestHandler) fasthttp.RequestHandler {
|
||||
return func(ctx *fasthttp.RequestCtx) {
|
||||
//inboud logic
|
||||
h(ctx) //call the downstream handler
|
||||
//outbound logic
|
||||
// inboud logic
|
||||
h(ctx) // call the downstream handler
|
||||
// outbound logic
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue