Skip to content

How to send status code along with trailers in a Body::channel? #3004

@ramiroaisen

Description

@ramiroaisen

Hello, first of all, thanks for this great project!

I'm using hyper to create an Icecast compatible streaming server and I didn't find a way to send a status code along with trailers in a body constructed from Body::channel.

Is this possible? I only see that send_trailers accepts a HeaderMap but no StatusCode.

I'm sure I'm missing something.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-featureCategory: feature. This is adding a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions