Skip to content

Documentation: correct way to get client IP? #1318

@sabard

Description

@sabard

FastAPI has a simple mechanism for accessing client information from the Request object. It looks like this information is stored in ASGIConnection in Starlite, but it's not clear to me how to access this object from a HTTP handler from the documentation, only middleware.

If this is easily done can an example be added to the documentation? Let me know if I'm missing something simple.

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionThis is a question and further information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions