- All Superinterfaces:
Function<OutputStream,
,OutputStream> UnaryOperator<OutputStream>
Content encoder.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply
(OutputStream network) Encode an output stream.default void
headers
(WritableHeaders<?> headers) Update headers.
-
Field Details
-
NO_OP
No-op content encoder.
-
-
Method Details
-
apply
Encode an output stream.- Specified by:
apply
in 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
-