Skip to content

Instantly share code, notes, and snippets.

@codingtony
codingtony / ChunkOutputStream.java
Last active December 21, 2017 04:37
An handy, yet simple ChunkedOutputSteam for HTTP chunked response with Netty 4.0 Useful when you have an application that writes to an OutputStream and you don't want (or cannot) rewrite it. Released under APL 2.0 Any bugs? let me know!
/************************************************************************
Copyright 2013 Tony Bussieres
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software