ServerIncomingMessage
Server/application integration contract.
Compatibility
ReactServer/build API, not a browser import.
React SSRAvailable to this renderer's SSR integration; browser event handlers run after hydration.
PreactServer/build API, not a browser import.
Preact SSRAvailable to this renderer's SSR integration; browser event handlers run after hydration.
Import from @kasperrt/smolter/utils/http
Signature
interface ServerIncomingMessage extends IncomingMessage {
/** Express supplies this using the application's trust proxy policy. */
protocol?: string;
originalUrl?: string;
}Contract
This type describes the optional server or Vite integration. See the Express and virtual routes guides for complete usage. It is not a browser runtime dependency.
interface ServerIncomingMessage extends IncomingMessage {
/** Express supplies this using the application's trust proxy policy. */
protocol?: string;
originalUrl?: string;
}Fields
protocol
protocol?: string;Express supplies this using the application's trust proxy policy.
originalUrl
originalUrl?: string;