Giter VIP home page Giter VIP logo

Comments (7)

jcheng5 avatar jcheng5 commented on August 10, 2024

It had occurred to me, but I thought it would make more sense for a higher level library like Rook or Sinartra to handle this kind of stuff. If you want to extract it into a new package, feel free (it'd have to be GPLv3 though, if you want a different license we'd have to discuss it).

Also I'm not that fond of our middleware.R; the API wasn't designed with a lot of care or thought, I just threw it together. If I was making something for reuse, I'd do it differently. But if you find it useful, by all means, go ahead and use it...

from httpuv.

hcorrada avatar hcorrada commented on August 10, 2024

Makes sense. Thanks for the help!

from httpuv.

thomasp85 avatar thomasp85 commented on August 10, 2024

@jcheng5 - I have begun to write a new package for a more general web server abstraction in R - Currently at a very early stage at thomasp85/fiery. Would you be willing to discuss some of your experiences and how you would redo the middleware code?

from httpuv.

jcheng5 avatar jcheng5 commented on August 10, 2024

The middleware stuff is really low level, like Rack, Servlet API, or WSGI level. I would make a layer on top that's opinionated and user-focused, and has built-in support for routing, REST idioms, and parameter matching--not just implemented as decorators.

I'd also rethink the API for request/response objects. As they are now they're just following the Rook specification and one could imagine a nicer API for manipulating them.

from httpuv.

thomasp85 avatar thomasp85 commented on August 10, 2024

Thanks for responding @jcheng5. The whole point of my project is exactly to create a user-focused layer that abstracts all this away. It is a pass-time project though, and my experience with creating server frameworks is low atm. Would you be interested in commenting on ideas and implementations from time to time so some of your experiences will get incorporated?

from httpuv.

jcheng5 avatar jcheng5 commented on August 10, 2024

@thomasp85 While I'd certainly be willing to weigh in, I'd advise you to set your expectations pretty low--I'm stretched a little thin these days and it can be hard for me to find time to provide answers to questions not directly related to the projects I'm working on. Definitely feel free to ask away though!

from httpuv.

thomasp85 avatar thomasp85 commented on August 10, 2024

@jcheng5 Thats all I was expecting/hoping - thanks

from httpuv.

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.