mirror of
https://github.com/tutao/tutanota.git
synced 2025-10-20 00:13:48 +00:00
52 lines
1.3 KiB
JavaScript
52 lines
1.3 KiB
JavaScript
![]() |
export class HTTPRequest {
|
||
|
static URL_SCHEME_REGEX = /^https?:\/\//;
|
||
|
|
||
|
constructor(...args) {
|
||
|
throw new Error("HTTPRequest is not supported in this build.");
|
||
|
}
|
||
|
|
||
|
async save(_modelArtifacts) {
|
||
|
throw new Error("HTTPRequest.save() is not supported in this build.");
|
||
|
}
|
||
|
|
||
|
async loadModelJSON() {
|
||
|
throw new Error("HTTPRequest.loadModelJSON() is not supported in this build.");
|
||
|
}
|
||
|
|
||
|
async load() {
|
||
|
throw new Error("HTTPRequest.load() is not supported in this build.");
|
||
|
}
|
||
|
|
||
|
async loadStream() {
|
||
|
throw new Error("HTTPRequest.loadStream() is not supported in this build.");
|
||
|
}
|
||
|
|
||
|
async getWeightUrls(_weightsManifest) {
|
||
|
throw new Error("HTTPRequest.getWeightUrls() is not supported in this build.");
|
||
|
}
|
||
|
|
||
|
async loadWeights(_weightsManifest) {
|
||
|
throw new Error("HTTPRequest.loadWeights() is not supported in this build.");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export function parseUrl() {
|
||
|
throw new Error("parseUrl is not supported in this build.");
|
||
|
}
|
||
|
|
||
|
export function isHTTPScheme() {
|
||
|
throw new Error("isHTTPScheme is not supported in this build.");
|
||
|
}
|
||
|
|
||
|
export const httpRouter = () => {
|
||
|
throw new Error("httpRouter is not supported in this build.");
|
||
|
}
|
||
|
|
||
|
export function http(path, loadOptions) {
|
||
|
throw new Error("http() is not supported in this build.");
|
||
|
}
|
||
|
|
||
|
export function browserHTTPRequest(path, loadOptions) {
|
||
|
throw new Error("browserHTTPRequest() is not supported in this build.");
|
||
|
}
|