Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 75dfa35

Browse files
committed
Documents behavior introduced in #480
1 parent a9d92fb commit 75dfa35

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/book/features/middleware/implicit-methods-middleware.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,15 @@ instance). However, if `GET` is supported, it will dispatch the next layer, but
7070
with a `GET` request instead of `HEAD`; additionally, it will inject the
7171
returned response with an empty response body before returning it.
7272

73+
### Detecting forwarded requests
74+
75+
- Since 2.1.0
76+
77+
When the next layer is dispatched, the request will have an additional
78+
attribute, `Zend\Expressive\Middleware\ImplicitHeadMiddleware::FORWARDED_HTTP_METHOD_ATTRIBUTE`,
79+
with a value of `HEAD`. As such, you can check for this value in order to vary
80+
the headers returned if desired.
81+
7382
## ImplicitOptionsMiddleware
7483

7584
`Zend\Expressive\Middleware\ImplicitOptionsMiddleware` provides support for

0 commit comments

Comments
 (0)