import { Headers , Options } from "../responses/response" ; export interface RequestInterface { headers : { [ key ] : any ; } ; query : { [ key ] : any ; } ; body : { [ key ] : any ; } ; } export class OAuthRequest implements RequestInterface { body : { [ key ] : any ; } ; headers : Headers = { } ; query : { [ key ] : any ; } ; constructor ( options = { } ) { this . headers = { ... options . headers , } ; this . query = { ... options . query , } ; this . body = { ... options . body , } ; } set ( fieldOrHeaders , value ) { this . headers [ fieldOrHeaders . toLowerCase ( ) ] = value ; } }