'Generate a dummy request for use by C{_computeAllowedMethod} tests.'

def _getReq(self):

    d = DummyChannel()
    d.site.resource.putChild('gettableresource', GettableResource())
    d.transport.port = 81
    request = server.Request(d, 1)
    request.setHost('example.com', 81)
    request.gotLength(0)
    return request
