errors.js |
Construct a generic HTTP error. This is a JavaScript Error with additional information
specific to HTTP responses.
@param msg - The error message to include.
@param httpStatus - The HTTP response status code.
|
3333 |
fetch.js |
This is an internal module. See {@link MatrixHttpApi} for the public class.
|
12476 |
index.js |
Upload content to the homeserver
@param file - The object to upload. On a browser, something that
can be sent to XMLHttpRequest.send (typically a File). Under node.js,
a Buffer, String or ReadStream.
@param opts - options object
@returns Promise which resolves to response object, as
determined by this.opts.onlyData, opts.rawResponse, and
opts.onlyContentUri. Rejects with an error (usually a MatrixError).
|
9510 |
interface.js |
@experimental
Unencrypted access and (optional) refresh token
|
1295 |
method.js |
#__PURE__ |
967 |
prefix.js |
#__PURE__ |
1355 |
utils.js |
Attempt to turn an HTTP error response into a Javascript Error.
If it is a JSON response, we will parse it into a MatrixError. Otherwise
we return a generic Error.
@param response - response object
@param body - raw body of the response
@returns
|
5984 |