Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What are the advantages/disadvantages of serializing links in the body JSON (i.e. HAL) vs. using the Link header?


This is a good question, and the answer is philosophical purity and pragmatism. Philosophically, some people believe that this information should be encapsulated in the HTTP response body, while others believe that they should be able to leverage all of the parts of the HTTP spec including the response headers. Pragmatically, certain environments make it harder or easier to access certain parts of request and response objects, but the lowest common denominator is the body content.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: