@switstack/switcloud-api-ts
    Preparing search index...

    Class BOMApi

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    configuration: Configuration = DefaultConfig

    Methods

    • Check if the given MIME is a JSON MIME. JSON MIME examples: application/json application/json; charset=UTF8 APPLICATION/JSON application/vnd.company+json

      Parameters

      • mime: string

        MIME (Multipurpose Internet Mail Extensions)

      Returns boolean

      True if the given MIME is JSON, false otherwise.

    • Type Parameters

      Parameters

      • this: T
      • ...postMiddlewares: ((context: ResponseContext) => Promise<void | Response>)[]

      Returns T