Skip to content

forwardTo() behavior should be documented #32

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
slightlyoff opened this issue Apr 10, 2013 · 3 comments
Closed

forwardTo() behavior should be documented #32

slightlyoff opened this issue Apr 10, 2013 · 3 comments

Comments

@slightlyoff
Copy link
Contributor

The fowardTo() API will generate redirects that need to have their behvaior spec'd.

In particular:

  • behavior with regards to the generated request re-entering the controller
  • how to handle loops
  • determining what the eventual status code of the response will be
@jakearchibald
Copy link
Contributor

Whatever forwardTo does, will redirects do the same? As in, if a page resource request isn't altered during onfetch, hits the network & redirects, does it reenter onfetch for the new url?

@annevk
Copy link
Member

annevk commented Nov 6, 2013

It seems cases like this is why you need integration with http://fetch.spec.whatwg.org/ as that already has a thin layer on top of HTTP (and sometimes overriding HTTP for bugs) and you can't pretend to just be a proxy.

@slightlyoff
Copy link
Contributor Author

We decided that forwardTo() will re-enter, per decisions captured in #47. Redirects that are handed to the network layer are opaque and do not re-enter.

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

4 participants