Method compressed
Pipes compressed asset to Client
Parameters:
req must be an Object.(HTTP(S) request Object)
res must be an Object.(HTTP(S) response Object)
body must be an Object.(Response body)
type must be an Object.(gzip (gz) or deflate (df))
etag must be a String.(Etag)
file must be a Boolean.(Indicates body is a file path)
body
Returns an Objet(TurtleIO instance)
Pipe compressed asset to Client
Pipe Stream through compression to Client & disk
Raw response body, compress and send to Client & disk
Pipe compressed asset to disk
Method compressed
Pipes compressed asset to Client
Parameters:
req must be an Object.
(HTTP(S) request Object)
res must be an Object.
(HTTP(S) response Object)
body must be an Object.
(Response body)
type must be an Object.
(gzip (gz) or deflate (df))
etag must be a String.
(Etag)
file must be a Boolean.
(Indicates
body
is a file path)Returns an Objet
(TurtleIO instance)