SAP Cloud SDK for JavaScript - v4.1.1
    Preparing search index...

    Interface MiddlewareOptions<ArgumentT, ReturnT, ContextT>

    Input parameter of a middleware.

    interface MiddlewareOptions<
        ArgumentT,
        ReturnT,
        ContextT extends MiddlewareContext<ArgumentT>,
    > {
        context: ContextT;
        fn: MiddlewareFunction<ArgumentT, ReturnT>;
    }

    Type Parameters

    Index

    Properties

    Properties

    context: ContextT

    Context of the execution e.g. the request context or URL.

    Initial function enriched by the middleware e.g. axios request getting a timeout.

    Copyright Ⓒ 2025 SAP SE or an SAP affiliate company. All rights reserved.