- All Superinterfaces:
Function<OutputStream,,OutputStream> UnaryOperator<OutputStream>
Content encoder.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionapply(OutputStream network) Encode an output stream.default voidheaders(WritableHeaders<?> headers) Update headers.
-
Field Details
-
NO_OP
No-op content encoder.
-
-
Method Details
-
apply
Encode an output stream.- Specified by:
applyin interfaceFunction<OutputStream,OutputStream> - Parameters:
network- output stream to be written over the network- Returns:
- output stream to write plain data (to compress, encrypt)
-
headers
Update headers.- Parameters:
headers- headers to update
-