Skip to content

Provide access to the remote IP address in a handler #671

Description

@Wervice

Problem statement

Currently, I see no way to get the remote IP address inside the handler, which may be necessary for logging, rate-limiting, login-control and so on.

Proposed solution

Cot could provide a remote_addr: IpAddr inside as a handler argument.

Alternatives considered

No response

Drawbacks

No response

Additional context

I tried to workaround this problem myself by writing my own middleware, but I could not find an explanation on how to do so nor an answer to the question whether making own middleware is an intended use of Cots' API.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions