Skip to content

Response and HttpResponseBodyPart should return ByteBuf #1953

Closed
@dgolombek

Description

@dgolombek

Similar to #1951 , Response and HttpResponseBodyPart should optionally return ByteBufs instead of just ByteBuffer or byte[], in case the caller will be using the response data with Netty (or just cares about performance). This be much more efficient if the LazyResponseBodyPart factory is used instead of the eager variant obviously. LazyResponseBodyPart already has getBuf(), but that doesn't help when you have a full Response, and it's not part of the interface. I'll submit a patch for this as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions