export type HttpMethod = "GET" | "HEAD" | "POST" | "PUT" | "DELETE" | "CONNECT" | "OPTIONS" | "TRACE" | "MERGE" | "PATCH" ; export default interface IRequest { getMethod ( ) : HttpMethod ; getUrl ( ) : string ; getEndpoint ( ) : string ; getPath ( ) : string ; getBodyStream ( ) : NodeJS . ReadableStream ; setBody ( body ) : IRequest ; getBody ( ) : string | undefined ; getHeader ( field ) : string | undefined ; getHeaders ( ) : { [ header ] : string | string [ ] | undefined ; } ; getRawHeaders ( ) : string [ ] ; getQuery ( key ) : string | undefined ; getProtocol ( ) : string ; }