Skip to content

Instantly share code, notes, and snippets.

@jto
Created May 24, 2013 15:22
Show Gist options
  • Select an option

  • Save jto/5644279 to your computer and use it in GitHub Desktop.

Select an option

Save jto/5644279 to your computer and use it in GitHub Desktop.
val bodyEnumerator = {
val body = {
val cBuffer = nettyHttpRequest.getContent()
val bytes = new Array[Byte](cBuffer.readableBytes())
cBuffer.readBytes(bytes)
bytes
}
Enumerator(body).andThen(Enumerator.enumInput(EOF))
}
bodyEnumerator |>> eventuallyBodyParser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment