Options
All
  • Public
  • Public/Protected
  • All
Menu

External module @twilio-labs/serverless-api/dist/utils

Index

Functions

Functions

getContentType

  • getContentType(content: string | Buffer, name?: undefined | string): string | undefined
  • Tries to determine the content type of a string or buffer

    export

    Parameters

    • content: string | Buffer

      the content to check

    • Optional name: undefined | string

    Returns string | undefined

    a valid content type or undefined

Const sleep

  • sleep(ms: number): Promise<Object>
  • Resolves after a given amount of milliseconds

    Parameters

    • ms: number

      milliseconds to wait

    Returns Promise<Object>

Generated using TypeDoc