Skip to content

Streaming support? #35

@hlship

Description

@hlship

Huff's hiccup datastructures can often contain lazily-evaluated structures (via for and map, and so forth).

Currently, to build the resuilt, this must be concatenated into a StringBuilder and then into a RawString.

Pedestal has the ability to represent the body of an HTML response as a function that is passed the (servlet) OutputStream; being able to hook that into Huff could yield faster responses as the intermediate stage (the StringBuilder) would not have to be instantiated first, instead the visit of the datastructure could emit, via an OutputStream (or OutputWriter) the desired content.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions