Compress Outgoing Requests in Angular 2+
问题 I want to use gzip or deflate compression on outgoing POST and PUT JSON requests to an API project from an Angular 4 application. Presently, I'm using HttpClient to send the requests. I've tried using pako or zlib to generate the compressed content, but the server returns back responses indicating a bad implementation of the compression algorithm. My POST TypeScript looks like the following: public post(url: string, content: any): Observable < any > { const fullUrl: string = `${HttpService