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

(feat) Request and Response #13

Merged
merged 7 commits into from
Jun 14, 2014
Merged

(feat) Request and Response #13

merged 7 commits into from
Jun 14, 2014

Conversation

zzmp
Copy link
Member

@zzmp zzmp commented Jun 14, 2014

Adds preliminary Request and Response traits, and default implementations.

This currently relies on rust-http, which does not expose enough fields of the ResponseWriter for a Clone-like implementation, so the implementations will need to be amended eventually.

Specifically, Response is implemented as a synonym of ResponseWriter.

@zzmp
Copy link
Member Author

zzmp commented Jun 14, 2014

IronRequest should be a public struct.

@zzmp
Copy link
Member Author

zzmp commented Jun 14, 2014

This may be an issue external to this PR, but types are coerced in Iron with no extensibility. The only choice for coerced types is, at this point, IronRequest and IronResponse, unless we retool the boot process.

UPDATE: This is now documents as an issue, #14.

@reem
Copy link
Member

reem commented Jun 14, 2014

Awesome.

reem added a commit that referenced this pull request Jun 14, 2014
@reem reem merged commit 3ba82bc into master Jun 14, 2014
@zzmp zzmp deleted the feat/request-response branch June 14, 2014 21:06
phlmn pushed a commit to phlmn/iron that referenced this pull request Oct 19, 2018
(fix) Special cases empty routes to be "/" instead of ""
phlmn pushed a commit to phlmn/iron that referenced this pull request Oct 19, 2018
(fix) Updated rust installation.
phlmn pushed a commit to phlmn/iron that referenced this pull request Oct 19, 2018
(fix) Update Makefile/Travis for Cargo.
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.

None yet

2 participants