Skip to content

gh-134 HttpServerRequest.uploadHandler should take a function #135

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

Closed
wants to merge 2 commits into from

Conversation

galderz
Copy link
Contributor

@galderz galderz commented Feb 18, 2014

No description provided.

@Narigo
Copy link
Member

Narigo commented Feb 18, 2014

Yes. :)

@galderz
Copy link
Contributor Author

galderz commented Feb 18, 2014

Actually, there's more to this... there's no HttpServerFileUpload in the scala side. More to come...

req.endHandler({
val attrs = req.formAttributes()
attributeCount.set(attrs.size)
System.out.println("attr is " + attrs.get("framework"))
Copy link
Member

Choose a reason for hiding this comment

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

Missed debug statement

…ler()

* HttpServerRequest.uploadHandler should take a function with the
scala version of HttpServerFileUpload
* Added tests to verify form and file upload
* MultiMap adapter needs to be shallow copy over the Vert.x MultiMap.
Otherwise, changes to underlying Vert.x MultiMap were not visibible
to Scala consumers.
@galderz
Copy link
Contributor Author

galderz commented Feb 28, 2014

@Narigo I've updated the PR, particularly in the area of wrapping Vert.x's multi map. The new wrapper is a shallow, lazy, one which can check the underlying multi map for updated values...etc. The tests added by this PR were failing without this.

@galderz
Copy link
Contributor Author

galderz commented Feb 28, 2014

I've added a commit to upgrade to Vert.x 2.1RC1

@Narigo
Copy link
Member

Narigo commented Feb 28, 2014

Idea for tests: Upper/Lowercase adding removing headers.

@galderz galderz closed this Mar 12, 2014
@galderz
Copy link
Contributor Author

galderz commented Mar 12, 2014

Integrated

@galderz galderz deleted the t_134 branch March 13, 2014 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants