def _prequest(**headers):
    """
    Make a request with the given request headers for the persistence tests.
    """
    request = http.Request(DummyChannel(), False)
    for headerName, v in headers.items():
        request.requestHeaders.setRawHeaders(networkString(headerName), v)
    return request

    Make a request with the given request headers for the persistence tests.
    
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_http.py