UNPKG

@nodescript/core

Version:

Visual programming language for Browser and Node

21 lines 746 B
import { Schema } from 'airtight'; import { FetchHeadersSchema } from './FetchHeaders.js'; import { FetchMethodSchema } from './FetchMethod.js'; export const FetchRequestSpecSchema = new Schema({ type: 'object', properties: { url: { type: 'string' }, method: FetchMethodSchema.schema, headers: FetchHeadersSchema.schema, proxy: { type: 'string', optional: true }, followRedirects: { type: 'boolean', optional: true }, timeout: { type: 'number', optional: true }, connectOptions: { type: 'object', properties: {}, additionalProperties: { type: 'any' }, optional: true, }, }, }); //# sourceMappingURL=FetchRequestSpec.js.map