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

16 lines (13 loc) 439 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; } export type AxiosRequestConfigDefaults<Data = any> = Omit<CreateAxiosDefaults<Data>, 'proxy'> & { proxy?: AxiosRequestConfigProxyDefaults | false; }