Skip to content

Streaming / Delayed docs should be updated to clarify where $headers is intended to come from #29

@markstos

Description

@markstos

The Streaming section includes this code example:

my $app = sub {
    my $env = shift;

    # Delays response until it fetches content from the network
    return sub {
        my $responder = shift;

        fetch_content_from_server(sub {
            my $content = shift;
            $responder->([ 200, $headers, [ $content ] ]);
        });
    };
};

The docs should be updated to clarify which of the 3 levels of anonymous subs that $headers is expected to originate in.

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