[ Index ]

PHP Cross Reference of WordPress




/wp-includes/js/dist/ -> api-fetch.js (summary)

(no description)

File Size: 1095 lines (38 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 31 functions


Functions that are not part of a class:

__webpack_require__(moduleId)   X-Ref
No description

getDefault()   X-Ref
No description

getModuleExports()   X-Ref
No description

_objectWithoutProperties(source, excluded)   X-Ref
No description

_objectWithoutPropertiesLoose(source, excluded)   X-Ref
No description

ownKeys(object, enumerableOnly)   X-Ref
No description

_objectSpread(target)   X-Ref
No description

createNonceMiddleware(nonce)   X-Ref

return: {import('../types').APIFetchMiddleware & { nonce: string }} A middleware to enhance a request with a nonce.
param: {string} nonce

namespace_endpoint_ownKeys(object, enumerableOnly)   X-Ref

namespace_endpoint_objectSpread(target)   X-Ref
No description

root_url_ownKeys(object, enumerableOnly)   X-Ref

root_url_objectSpread(target)   X-Ref
No description

getStablePath(path)   X-Ref
Given a path, returns a normalized path where equal query parameter values
will be treated as identical, regardless of order they appear in the original

return: {string} Normalized path.
param: {string} path Original path.

createPreloadingMiddleware(preloadedData)   X-Ref

return: {import('../types').APIFetchMiddleware} Preloading middleware.
param: {Record<string, any>} preloadedData

fetch_all_middleware_ownKeys(object, enumerableOnly)   X-Ref
No description

fetch_all_middleware_objectSpread(target)   X-Ref
No description

http_v1_ownKeys(object, enumerableOnly)   X-Ref
No description

http_v1_objectSpread(target)   X-Ref
No description

parseAndThrowError(response)   X-Ref
Parses a response, throwing an error if parsing the response fails.

return: {Promise<any>} Parsed response.
param: {Response} response
param: {boolean} shouldParseResponse

media_upload_ownKeys(object, enumerableOnly)   X-Ref
No description

media_upload_objectSpread(target)   X-Ref
No description

build_module_ownKeys(object, enumerableOnly)   X-Ref

return: {Promise<any>} Processed post response.
param: {string} attachmentId

build_module_objectSpread(target)   X-Ref
No description

registerMiddleware(middleware)   X-Ref
Register a middleware

param: {import('./types').APIFetchMiddleware} middleware

setFetchHandler(newFetchHandler)   X-Ref
Defines a custom fetch handler for making the requests that will override
the default one using window.fetch

param: {FetchHandler} newFetchHandler The new fetch handler

apiFetch(options)   X-Ref

return: {Promise<T>} A promise representing the request processed via the registered middlewares.
param: {import('./types').APIFetchOptions} options

asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg)   X-Ref
No description

_asyncToGenerator(fn)   X-Ref
No description

_next(value)   X-Ref
No description

_throw(err)   X-Ref
No description

_defineProperty(obj, key, value)   X-Ref
No description

Generated: Fri Apr 23 01:00:05 2021 Cross-referenced by PHPXref 0.7.1