@kubernetes/client-node
    Preparing search index...
    Index

    Constructors

    Methods

    • From a list of possible media types, choose the one we can handle best.

      The order of the given media types does not have any impact on the choice made.

      Parameters

      • mediaTypes: string[]

      Returns string

    • Normalize media type

      We currently do not handle any media types attributes, i.e. anything after a semicolon. All content is assumed to be UTF-8 compatible.

      Parameters

      • mediaType: undefined | string

      Returns undefined | string

    • Parse data from a string according to the given media type

      Parameters

      • rawData: string
      • mediaType: undefined | string

      Returns any

    • Convert data to a string according the given media type

      Parameters

      • data: any
      • mediaType: string

      Returns string