Liking cljdoc? Tell your friends :D
Clojure only.

ol.client-ip.protocols


ClientIPStrategycljprotocol

Protocol for determining client IP from headers and remote address.

Returns InetAddress or nil if no valid client ip is found.

Implementations should:

  • Be thread-safe and reusable across requests
  • Validate configuration at creation time (throw on invalid config)
Protocol for determining client IP from headers and remote address.

Returns InetAddress or nil if no valid client ip is found.

Implementations should:
* Be thread-safe and reusable across requests
* Validate configuration at creation time (throw on invalid config) 

client-ipclj

(client-ip this headers remote-addr)

Extract the client IP from request headers and remote address.

Args: headers: Ring-style headers map (lowercase keys) remote-addr: String from Ring request :remote-addr

Returns: InetAddress or nil if no valid client IP found.

Extract the client IP from request headers and remote address.

Args:
  headers: Ring-style headers map (lowercase keys)
  remote-addr: String from Ring request :remote-addr

Returns:
  InetAddress or nil if no valid client IP found.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close