@sendgrid/helpers
Version:
Twilio SendGrid NodeJS internal helpers
14 lines (11 loc) • 352 B
TypeScript
import * as https from 'https';
type HttpMethod = 'get'|'GET'|'post'|'POST'|'put'|'PUT'|'patch'|'PATCH'|'delete'|'DELETE';
export default interface RequestOptions<TData = any, TParams = object> {
url: string;
method?: HttpMethod;
baseUrl?: string;
qs?: TParams;
body?: TData;
headers?: object;
httpsAgent?: https.Agent;
}