Chunked11

io.quartz.util.Chunked11
object Chunked11

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Chunked11.type

Members list

Value members

Concrete methods

def chunk_drop_with_validation(data: Chunk[Byte], offset: Int): Chunk[Byte]

Validates and drops chunk terminators

Validates and drops chunk terminators

Value parameters

data

The chunk data

offset

Position to start validation from

Attributes

Returns

Remaining data after removing chunk terminators

Throws
ChunkedEncodingError

if chunk terminator is invalid

def makeChunkedStream(s1: Stream[IO, Byte], timeOutMs: Int): Stream[IO, Chunk[Byte]]

Creates a stream that processes HTTP/1.1 chunked encoded data

Creates a stream that processes HTTP/1.1 chunked encoded data

Value parameters

s1

Input stream of bytes

timeOutMs

Timeout in milliseconds (currently unused)

Attributes

Returns

Stream of decoded bytes with chunked encoding removed