Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "extend"

Index

Functions

Functions

extend

  • extend(response: INativeResponseMutable | IResponseMutable): IResponseMutable
  • Extends a native reponse object with the extra properties that the fetcher requires. Notably it upgrades the json function to support verification and conversion functions. It also adds a Url property that returns a Url primitive. This provides easy access to the url parts.

    Parameters

    • response: INativeResponseMutable | IResponseMutable

      either a native response or an already extended response

    Returns IResponseMutable

    the extended response