h2non / gentleman

Plugin-driven, extensible HTTP client toolkit for Go

Home Page:https://pkg.go.dev/github.com/h2non/gentleman?tab=doc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support standard rfc6570 URL Template syntax and replacement

ymaraner opened this issue · comments

Currently, gentleman supports a non-standard :<name> notation for defining replacement path tokens in a URI, excluding the query parameters.

Level 1 of the proposed standard: rfc6570 specifies the use of {<name>} notation for replacement tokens in both the path and the query parameters.

In order to support the use of URIs obtained from HATEOAS links which may follow the rfc6570 standard, gentleman should support the standard notation. Additionally, it should support replacement of tokens in the query parameters in addition to the path.