Classes
Methods
(static) BodyCodec.buffer() → {BodyCodec}
- Source:
Returns:
the codec
- Type
- BodyCodec
(static) BodyCodec.create(decode) → {BodyCodec}
Create a codec that buffers the entire body and then apply the
decode
function and returns the result.
Parameters:
Name | Type | Description |
---|---|---|
decode |
todo | the decode function |
Returns:
the created codec
- Type
- BodyCodec
(static) BodyCodec.json(type) → {BodyCodec}
Create and return a codec for Java objects encoded using Jackson mapper.
Parameters:
Name | Type | Description |
---|---|---|
type |
todo |
Returns:
a codec for mapping POJO to Json
- Type
- BodyCodec
(static) BodyCodec.jsonArray() → {BodyCodec}
Returns:
the codec
- Type
- BodyCodec
(static) BodyCodec.jsonObject() → {BodyCodec}
- Source:
Returns:
the codec
- Type
- BodyCodec
(static) BodyCodec.none() → {BodyCodec}
Returns:
a codec that simply discards the response
- Type
- BodyCodec
(static) BodyCodec.pipe(stream) → {BodyCodec}
A body codec that pipes the body to a write stream.
Parameters:
Name | Type | Description |
---|---|---|
stream |
WriteStream | the destination tream |
Returns:
the body codec for a write stream
- Type
- BodyCodec
(static) BodyCodec.string(encoding) → {BodyCodec}
A codec for strings using a specific
encoding
.
Parameters:
Name | Type | Description |
---|---|---|
encoding |
string | the encoding |
- Source:
Returns:
the codec
- Type
- BodyCodec