Interface Context

Context that used for render server entry point for development It needs a production implementation for your environment. The context will go to the created hook parameters of the plugin

interface Context {
    cookies: Record<string, string>;
    headers: Record<string, string | string[]>;
    hostname: string;
    ip: string;
    memcache: null | number;
    onError?: ((err) => void);
    protocol: string;
    responseHeaders: Record<string, any>;
    statusCode: number;
    url: string;
}

Properties

cookies: Record<string, string>
headers: Record<string, string | string[]>
hostname: string
ip: string
memcache: null | number
onError?: ((err) => void)

Type declaration

    • (err): void
    • Parameters

      • err: any

      Returns void

protocol: string
responseHeaders: Record<string, any>
statusCode: number
url: string

Generated using TypeDoc