request: allow alternate request methods when rewriting html

Fixes #421