Expand description
Http request helper
Http请求辅助操作
Constants§
Functions§
- add_ip
- Add ip to context
- get_
real_ ip_ from_ ctx - Get real ip from context
- mapped_
ipv6_ to_ ipv4 - Convert IPv4-mapped IPv6 to ipv4 e.g ::ffff:192.168.0.11 => 192.168.0.11
- parse_
forwarded_ ip - Parse the Forwarded header to get the IP
- sort_
hashmap_ query - Sort query and convert to lowercase
- sort_
query - Sort query string and convert to lowercase
- try_
get_ real_ ip_ from_ req - Try to get real ip from request
- try_
set_ real_ ip_ from_ req_ to_ ctx - Try to set real ip from request to context