You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that URI fragment is missing in the package.
I am talking about secondary part of URI (after hash sign, #). Despite it does not used in HTTP REST API, it is quite useful in HTTP (e.g. as HTML anchor). I would like to have it as a part of http-types just not to introduce it separately in several other packages dependent on this package (e.g. yesod-core).
Hi @aristidb,
Problem statement
I found that
URI fragment
is missing in the package.I am talking about secondary part of URI (after hash sign,
#
). Despite it does not used in HTTP REST API, it is quite useful in HTTP (e.g. as HTML anchor). I would like to have it as a part ofhttp-types
just not to introduce it separately in several other packages dependent on this package (e.g.yesod-core
).Motivation
Consider GitHub, e.g. following URL: https://github.com/aristidb/http-types/blob/master/Network/HTTP/Types/URI.hs#L340-L347
While the content of the page with and without anchor remains the same, the page markup is different.
Imagine the situation where I want to introduce server-side rendering for HTML page with similar (highlighting) functionality based on fragment.
Would you like to accept PR with this missing part?
Thanks,
Andrey
The text was updated successfully, but these errors were encountered: