starlette.requests.Request.client

Here are the examples of the python api starlette.requests.Request.client taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

3 Source : test_requests.py
with BSD 3-Clause "New" or "Revised" License
from encode

def test_request_client(scope: Scope, expected_client: Optional[Address]):
    scope.update({"type": "http"})  # required by Request's constructor
    client = Request(scope).client
    assert client == expected_client


def test_request_body(test_client_factory):