8000 Response header handling via renderData() · Issue #412 · framework-one/fw1 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Response header handling via renderData() 8000 #412

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
seancorfield opened this issue Dec 18, 2015 · 1 comment
Closed

Response header handling via renderData() #412

seancorfield opened this issue Dec 18, 2015 · 1 comment
Assignees
Milestone

Comments

@seancorfield
Copy link
Member

Add default (empty) render data structure and update code accordingly. Add renderer() function to access that data structure. Modify renderData() to use renderer().

Add header() to render data builder.

@seancorfield
Copy link
Member Author

New renderer() function returns a builder for renderData(), can be called anywhere (in a controller). It now has a header() function to add an HTTP response header and those are set before the status code is set when rendering data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant
0