Home / Function/ getClientIpAddress() — astro Function Reference

getClientIpAddress() — astro Function Reference

Architecture documentation for the getClientIpAddress() function in request.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  cb30220a_972e_8519_72dd_68b300056b4c["getClientIpAddress()"]
  41004e70_3807_4886_1b5f_11643c14c0e2["request.ts"]
  cb30220a_972e_8519_72dd_68b300056b4c -->|defined in| 41004e70_3807_4886_1b5f_11643c14c0e2
  1b395938_97ca_c237_e08a_1881741d796e["getFirstForwardedValue()"]
  cb30220a_972e_8519_72dd_68b300056b4c -->|calls| 1b395938_97ca_c237_e08a_1881741d796e
  style cb30220a_972e_8519_72dd_68b300056b4c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/core/routing/request.ts lines 18–20

export function getClientIpAddress(request: Request): string | undefined {
	return getFirstForwardedValue(request.headers.get('x-forwarded-for'));
}

Domain

Subdomains

Frequently Asked Questions

What does getClientIpAddress() do?
getClientIpAddress() is a function in the astro codebase, defined in packages/astro/src/core/routing/request.ts.
Where is getClientIpAddress() defined?
getClientIpAddress() is defined in packages/astro/src/core/routing/request.ts at line 18.
What does getClientIpAddress() call?
getClientIpAddress() calls 1 function(s): getFirstForwardedValue.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free