Request header

The handler reads the incoming request

getRequestInfo() calls getRequestHeader('user-agent') inside the server function. Loaders are not a safe place for that API, because a loader also runs in the browser during client navigation. The value below is whatever the browser sent with this request.

Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)

All examples