detectAddress method Null safety

String detectAddress(
  1. Request req
)

Detects the IP address from which the given HTTP request was received.

  • req an HTTP RequestContext request to process. Returns the detected IP address (without a port). If no IP is detected - null will be returned.