doc: OnRequest function handler needs to return req and resp

The `OnRequest().DoFunc()` function is expecting a function returning
both a modified request and a response (optionally nil). Fix some
documentation strings to reflect that.