The current response::file() response generator needs to be improved/extended:
Allow handling HEAD requests (and GET)
Separately provide HTTP doc root path and request target. This way the response generator can verify the sanity of the provided request path and respond accordingly (eg. bad request, I'm a tea pot etc.
The current
response::file()
response generator needs to be improved/extended:HEAD
requests (andGET
)bad request
,I'm a tea pot
etc.