• Parameters

    • request: RequestObj

      A request object container of the URL and the Request Init object

    • action: {
          type: ActionTypes;
          payload?: any;
      }

      The action object that is passed into the middleware communicating intent

      • type: ActionTypes

        A "Redux" style type that contains the serialized action

      • Optionalpayload?: any

        The payload of the action that can contain metadata

    Returns ((middleware: RequestMiddleware[] | undefined) => RequestObj)

    • Function that takes middleware parameter & runs middleware against request

    middlewareWrapper - A "Node" and "Redux" style middleware that is called just before the request is made from the SDK. This allows you access to the request for modification.