Dear,
I'm planning to upload a file base on multipart/form-data specs. I found your library and I'm curious how to use it in my typescript application. I'm using typed-rest-client for all of my http calls.
I suppose I could leverage the uploadStream method from the rest client in order to integrate with form-data.
public async uploadStream<T>(verb: string,
requestUrl: string,
stream: NodeJS.ReadableStream,
options?: IRequestOptions): Promise<IRestResponse<T>> {
let url: string = util.getUrl(requestUrl, this._baseUrl);
let headers: ifm.IHeaders = this._headersFromOptions(options, true);
let res: httpm.HttpClientResponse = await this.client.sendStream(verb, url, stream, headers);
return this._processResponse<T>(res, options);
}
Is there an example on how to achieve something like this?
Thanks
Dear,
I'm planning to upload a file base on multipart/form-data specs. I found your library and I'm curious how to use it in my typescript application. I'm using typed-rest-client for all of my http calls.
I suppose I could leverage the uploadStream method from the rest client in order to integrate with form-data.
Is there an example on how to achieve something like this?
Thanks