GithubHelp home page GithubHelp logo

stevestreza / barista Goto Github PK

View Code? Open in Web Editor NEW
500.0 500.0 30.0 540 KB

A modular, embeddable web server for Objective-C.

License: Other

Ruby 0.42% Objective-C 59.89% CSS 18.36% JavaScript 21.34%

barista's People

Contributors

grantjbutler avatar joeldev avatar segiddins avatar stevestreza avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

barista's Issues

Request query is ignored

I noticed that when I attached a query to my URL, it wasn't showing up in the parameters. I tracked this down to a change in commit 4fa48b7. Instead of routing on the request.URL it routes on the request.URL.path in order to avoid the problem of JLRoutes using the host in the path.

This looks like some kind of rock and hard place. If the URL is used, the query is left alone, which is good, but the host is used, which is bad. If the URL.path is used the host is stripped off, which is good, but the query is also stripped off, which is bad.

Is JLRoutes using the host 'A Good Thing'? I notice the comment in that code says it is for some kind of backward-compatibility; maybe JLRoutes should not do it at all, or have a switch to disable it or something (which I realise is a topic to take up in the JLRoutes issues).

I'm putting this here because I don't think it is working right, but I don't know what is the right solution.

For the time being, to make it work in my app (I'm using Barista as a dev helper to dish up JSON to the iPhone app I'm developing), I have simply gone back to using URL for routing, and commented out the part of JLRoutes which uses the host name for routing.

WebSockets?

Is there an API for WebSockets? If not, will that be added soon or are you waiting for someone else to make middleware?

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.