Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial work #1

Merged
merged 20 commits into from
Dec 2, 2014
Merged

Initial work #1

merged 20 commits into from
Dec 2, 2014

Conversation

purplefox
Copy link
Contributor

No description provided.

@purplefox
Copy link
Contributor Author

@pmlopes Can you review this please?

* @author <a href="http://tfox.org">Tim Fox</a>
*/
@VertxGen
public interface Bodies extends Handler<RoutingContext> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am seeing this and am remembering some comments from Yoke users that we probably should split Multipart parsing and POST body parsing. The reason is that for APIs you might want to parse the HTTP body usually with a JSON/XML payload, but allowing multipart is not desired since it could lead to DoS with big files uploads.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added bodyLimit functionality which should work even if multipart.

if (groups != null) {
// Pattern - named params
for (String param : groups) {
params.put(param, m.group(param));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not planning to support param like in Yoke?
https://github.com/pmlopes/yoke/blob/develop/framework/src/test/java/com/jetdrone/vertx/yoke/test/middleware/Router.java#L137

if you have a route /users/:id you can add a param('id', regex) or param('id', handler) and it will be called before the handler

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool. Didn't know Yoke had that functionality. Will take a look :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will add param to todo list for apex is it looks like useful functionality

@purplefox
Copy link
Contributor Author

Paulo - I've updated the PR to remove the system.out.println.

The other issues I'm going to add a GitHub issues after this is merged to master.

Then I'm going to create new GitHub issues for each of the remaining apex tasks/issues and we can assign to them to ourselves.

Then we can both submit PRs against master when we do them.

How does that sound to you?

purplefox added a commit that referenced this pull request Dec 2, 2014
@purplefox purplefox merged commit 471f69a into master Dec 2, 2014
@purplefox purplefox deleted the initial-work branch December 2, 2014 13:00
pmlopes pushed a commit that referenced this pull request Jun 6, 2016
Update to latest master
pmlopes pushed a commit that referenced this pull request Jan 25, 2018
Improvement: On socket_idle, close socket only is event is completed.
pmlopes pushed a commit that referenced this pull request Dec 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants