UNPKG

mongodb-stitch

Version:

[![Join the chat at https://gitter.im/mongodb/stitch](https://badges.gitter.im/mongodb/stitch.svg)](https://gitter.im/mongodb/stitch?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

34 lines (33 loc) 937 B
import Method from "./Method"; export declare class StitchRequest { readonly method: Method; readonly path: string; readonly headers: { [key: string]: string; }; readonly body?: string; readonly startedAt: number; constructor(method: Method, path: string, headers: { [key: string]: string; }, startedAt: number, body?: string); readonly builder: StitchRequest.Builder; } export declare namespace StitchRequest { class Builder { method?: Method; path?: string; headers?: { [key: string]: string; }; body?: string; startedAt?: number; constructor(request?: StitchRequest); withMethod(method: Method): this; withPath(path: string): this; withHeaders(headers: { [key: string]: string; }): this; withBody(body: string): this; build(): StitchRequest; } }