Пример #1
0
def DieselReq():
    diesel_request = HttpRequest('GET', '/', 'HTTP/1.1')
    diesel_request.headers = HttpHeaders(Host='localhost') # else 400 in hydrate
    return diesel_request
Пример #2
0
def DieselReq():
    diesel_request = HttpRequest('GET', '/', 'HTTP/1.1')
    diesel_request.headers = HttpHeaders(Host='localhost')  # else 400
    return diesel_request
Пример #3
0
def DieselReq(path='/'):
    diesel_request = HttpRequest('GET', path, 'HTTP/1.1')
    diesel_request.headers = HttpHeaders(
        Host='localhost')  # else 400 in hydrate
    return diesel_request