Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "wordpress-packages/utils/lib/factory/ajax/parseResult"

Index

Functions

Functions

parseResult

  • parseResult<TResponse>(url: string, result: Response, method?: ERouteHttpVerb): Promise<TResponse>
  • Get the result of the Response. It also handles multiline responses, e. g. a PHP Notice: message is output through a conflicting plugin:

    If you are using a verb like DELETE or PUT the response may be empty and this function will return undefined.

    see

    https://developer.mozilla.org/de/docs/Web/HTTP/Methods/DELETE

    Type parameters

    Parameters

    Returns Promise<TResponse>

Generated using TypeDoc