/** * Copyright 2024 Angus.Fenying * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * The request methods defined in HTTP/1.1 standard. */ export type THttpMethod = 'GET' | 'HEAD' | 'POST' | 'PUT' | 'TRACE' | 'DELETE' | 'OPTIONS'; /** * The request methods defined in WebDAV standard. */ export type TWebDAVMethod = 'PATCH' | 'COPY' | 'LOCK' | 'UNLOCK' | 'MOVE' | 'MKCOL' | 'PROPFIND' | 'PROPPATCH' | 'REPORT' | 'MKACTIVITY' | 'CHECKOUT' | 'MERGE' | 'M-SEARCH' | 'NOTIFY' | 'SUBSCRIBE' | 'UNSUBSCRIBE'; /** * The type of available request methods. */ export type TMethod = THttpMethod | TWebDAVMethod; /** * The type of HTTP header. */ export type TResponseHeaders = Record>; export type CreateInputOptions = { [P in TRequired]-?: T[P]; } & { [P in TOptional]?: T[P]; }; /** * The version of protocol for request. */ export declare enum EVersion { HTTP_1_1 = 1.1, HTTP_2 = 2, /** * @deprecated Use `EVersion.ALPN` instead. */ AUTO = 0, ALPN = 0 } //# sourceMappingURL=Basic.d.ts.map