Stone.js API
    Preparing search index...

    Extends the AdapterContext interface to provide additional properties for the Node.js HTTP adapter.

    This context includes the raw HTTP response (ServerResponse) in addition to the standard Stone.js adapter context properties.

    interface NodeHttpAdapterContext {
        executionContext: NodeHttpServer;
        incomingEvent?: IncomingHttpEvent;
        incomingEventBuilder: IAdapterEventBuilder<
            IncomingHttpEventOptions,
            IncomingHttpEvent,
        >;
        outgoingResponse?: OutgoingHttpResponse;
        rawEvent: IncomingMessage;
        rawResponse: ServerResponse;
        rawResponseBuilder: IAdapterEventBuilder<
            RawResponseOptions,
            IRawResponseWrapper<ServerResponse<IncomingMessage>>,
        >;
    }

    Hierarchy

    • AdapterContext<
          IncomingMessage,
          ServerResponse,
          NodeHttpServer,
          IncomingHttpEvent,
          IncomingHttpEventOptions,
          OutgoingHttpResponse,
      >
      • NodeHttpAdapterContext
    Index
    executionContext: NodeHttpServer

    The executionContext of type ExecutionContextType.

    incomingEvent?: IncomingHttpEvent

    The incomingEvent associated with the executionContext.

    incomingEventBuilder: IAdapterEventBuilder<
        IncomingHttpEventOptions,
        IncomingHttpEvent,
    >

    The incomingEventBuilder.

    outgoingResponse?: OutgoingHttpResponse

    The outgoingResponse associated with the executionContext.

    rawEvent: IncomingMessage

    The rawEvent of type RawEventType.

    rawResponse: ServerResponse

    The raw HTTP response object associated with the current request.

    rawResponseBuilder: IAdapterEventBuilder<
        RawResponseOptions,
        IRawResponseWrapper<ServerResponse<IncomingMessage>>,
    >

    The rawResponseBuilder.