UNPKG

@serenity-js/rest

Version:

Serenity/JS Screenplay Pattern library for interacting with REST and other HTTP-based services, supporting comprehensive API testing and blended testing scenarios

17 lines (14 loc) 460 B
import { type CreateAxiosDefaults } from 'axios'; export type AxiosRequestConfigProxyDefaults = { host: string; port?: number; // SOCKS proxies don't require port number auth?: { username: string; password: string; }; protocol?: string; bypass?: string; } export type AxiosRequestConfigDefaults<Data = any> = Omit<CreateAxiosDefaults<Data>, 'proxy'> & { proxy?: AxiosRequestConfigProxyDefaults | false; }