Skip to content

Best way to serve large static files #38

Description

@loriopatrick

I'm trying to find the best way to send a large binary file. Looking at the ResponseSender code I see that I can send a byte array however I'd rather not buffer up all the contents in memory. I've begun a fork where I'm trying to abstract ResponseSender and make it changeable through the ServerConfig. Is this a good approach? I also thought about adding a new step in the netty pipeline to handle a new type of endpoint however that seemed like too much work.

Am I on the right path? Do you have any suggestions?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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