Skip to content
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

parse enumeration #3

Closed
vinniefalco opened this issue Jan 21, 2020 · 1 comment
Closed

parse enumeration #3

vinniefalco opened this issue Jan 21, 2020 · 1 comment
Labels

Comments

@vinniefalco
Copy link
Member

There should be an enumeration or something, to indicate how a URL string should be parsed, e.g.

enum class kind {
  url,
  absolute_uri,
  relative_ref,
  origin_form,
  absolute_form,
  authority_form
};

See https://tools.ietf.org/html/rfc7230#section-5.3

@vinniefalco vinniefalco mentioned this issue Jan 21, 2020
Closed
@vinniefalco
Copy link
Member Author

This is done, and without the enum. Instead, we just have a family of functions like parse_uri, parse_relative_ref, and so on. And you can build your own parsing functions since the library gives you the primitives to put together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant