ohkami-rs / ohkami

Ohkami - intuitive and declarative web framework for Rust
MIT License
73 stars 6 forks source link

feat: Add `"ip"` feature #250

Closed kanarus closed 2 months ago

kanarus commented 2 months ago

functionality

Get remote peer's IP address in Ohkami::howl, pass it to Session::manage, and set Request's addr public field to it when init.

note

This PR doesn't support "ip" on "rt_worker". references: