Skip to content

v3.3.3

Compare
Choose a tag to compare
@doochik doochik released this 28 Apr 19:13
· 31 commits to master since this release
140f8e3

Add request body compression option (#56, #57, #58, #59)

de.http({
    block: {
        method: 'POST',
        pathname: '/do_something',
        body: '_large_body_',
        // request body will be compressed with gzip
        body_compress: true,
        // OR pass ZlibOptions
        // https://nodejs.org/docs/latest/api/zlib.html#class-options 
        body_compress: { level: 1 }
    }
})