import IRequestReferrerPolicy from '../types/IRequestReferrerPolicy.cjs'; import IRequestRedirect from '../types/IRequestRedirect.cjs'; import URL from '../../url/URL.cjs'; import Request from '../Request.cjs'; /** * Fetch request validation utility. */ export default class FetchRequestValidationUtility { /** * Validates request method. * * @throws DOMException * @param request Request. */ static validateMethod(request: Request): void; /** * Validates request body. * * @throws DOMException * @param request Request. */ static validateBody(request: Request): void; /** * Validates request URL. * * @throws DOMException * @param url URL. */ static validateURL(url: URL): void; /** * Validates request referrer policy. * * @throws DOMException * @param referrerPolicy Referrer policy. */ static validateReferrerPolicy(referrerPolicy: IRequestReferrerPolicy): void; /** * Validates request redirect. * * @throws DOMException * @param redirect Redirect. */ static validateRedirect(redirect: IRequestRedirect): void; /** * Validates request redirect. * * @throws DOMException * @param request * @param redirect Redirect. */ static validateSchema(request: Request): void; } //# sourceMappingURL=FetchRequestValidationUtility.d.ts.map