for-GET / http-decision-diagram

An activity diagram to describe the resolution of HTTP response status codes, given various headers.
https://github.com/for-GET/http-decision-diagram/blob/master/doc/2013-06-10-http-hell-no.md
Apache License 2.0
3.61k stars 196 forks source link

dispatch uri vs resource uri #28

Open andreineculau opened 11 years ago

andreineculau commented 11 years ago

the resource should probably be self-aware of the path it is instantiated on, otherwise it's impossible for it to produce a response with a rel=self link

it could also just call the dispatcher, which would search in the dispatch config for a resource match, but if the resource is served from multiple locations, then which is the canonical location?

temp idea: canonical_uri callback

andreineculau commented 10 years ago

canonical_uri callback would default to expanding a URI template