Code Monkey home page Code Monkey logo

http-rendezvous's People

Contributors

nathanrsmith avatar nweiler avatar rahulpshah avatar

Stargazers

 avatar

Watchers

 avatar  avatar

http-rendezvous's Issues

Query string arguments cause BadRouteError

The regex's used to match routes are stricter than necessary, sometimes causing unexpected behavior for clients. For example, one of our http clients sends an auth-related argument in the query string of every request it makes because it's needed 90% of the time, and unknown query string arguments are normally ignored by routers.

How to Reproduce:
Send a valid request to any route with any query string at the end of the URL.

What Happens:
The server returns BadRouteError: No endpoint exists for the specified method and/or route.

What's Expected:
The request executes as normal, ignoring the query string.

Add headers which facilitate saving/parsing

It would be helpful to people on the download side of things to have some additional headers like content type and disposition (for default file name). This will significantly improve how browsers and other tools handle the download stream.

Form Data Upload Support

Currently, everything sent in the body of the PUT request is piped over to the GET side, but it would be helpful, for uploading from a webapp, if we could send files as form-data.

For example, a PUT request body like this:

------WebKitFormBoundarynZ754E75uK8wQZf9
Content-Disposition: form-data; name="file"; filename="testfile.psv"
Content-Type: application/octet-stream

1|2|3|4|5|data

------WebKitFormBoundarynZ754E75uK8wQZf9--

would result in the following coming out on the GET side:

1|2|3|4|5|data

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.