Rename f to handler
Update invokeHttpResponseMessage signature