class

Hwaro::Services::UnservablePathHandler

Inherits HTTP::Handler < Reference < Object

Answers 404 for the request shapes no static host serves (see DevPath.unservable?): an encoded / or \, a literal backslash, or a NUL in any form.

Having our own handlers decline them was not enough — the request just fell through to HTTP::StaticFileHandler, which decodes once as well and resolved /%2Fguide%2Findex.html to the real page via a 302. That is the exact dev/prod divergence this module exists to remove: a link that works locally and 404s once deployed. Delegating to NotFoundHandler keeps the 404 body (and its live-reload script) identical to every other 404.

Constructors

new(not_found : NotFoundHandler)
Source

Instance methods

call(context)
Source