Giter Site home page Giter Site logo

Comments (9)

fafhrd91 avatar fafhrd91 commented on May 7, 2024

You can use HttpRequest::range() for range.
I am not sure what else framework can provide regarding ranges. Do you have any suggestions?

Regarding HEAD, I'll review head support later today.

from actix-web.

fafhrd91 avatar fafhrd91 commented on May 7, 2024

HEAD support is fixed in master. I will make new release later today or tomorrow

from actix-web.

fafhrd91 avatar fafhrd91 commented on May 7, 2024

fixed by 91c44a1

from actix-web.

 avatar commented on May 7, 2024

HttpRequest::range() is a lot closer to what I'd like to see. Peak of convenience would be when I can pass this information to the fs::NamedFile Responder, so it will only return the requested range of bytes. But I can implement this for myself, so it's not really an issue.

Thank you for the quick reply and fix!

from actix-web.

fafhrd91 avatar fafhrd91 commented on May 7, 2024

I just don’t have enough time, but I am planing to add range support to named file

from actix-web.

 avatar commented on May 7, 2024

No problem. If it's on your roadmap maybe I can help you out with this. When I'll be satisfied with my solution I'll open a PR for this feature.

from actix-web.

fafhrd91 avatar fafhrd91 commented on May 7, 2024

PR would be great!

from actix-web.

fafhrd91 avatar fafhrd91 commented on May 7, 2024

I made new release with head requests fix

from actix-web.

 avatar commented on May 7, 2024

Thanks for the HEADs up! :) I'm switching back to stable.

Meanwhile I took a dive in the RFC, and looks like it's not an easy task. Now I have a working solution, but it's ugly and violates the rfc, so it needs some more work. If I'm progressing well with it, I'll open a ticket during the week and I'll keep you posted.

from actix-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.