http-rendezvous's People
http-rendezvous's Issues
Limit body size for non-streaming endpoints
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.