Skip to content

Comments

ValueError for invalid request URLs.#134

Open
lovelydinosaur wants to merge 4 commits intodevfrom
lovelydinosaur-patch-1
Open

ValueError for invalid request URLs.#134
lovelydinosaur wants to merge 4 commits intodevfrom
lovelydinosaur-patch-1

Conversation

@lovelydinosaur
Copy link
Contributor

When instantiating a request...

  • Raise ValueError for URLs with a non-HTTP scheme.
  • Raise ValueError for URLs missing a hostname.

When instantiating a request...

* Raise ValueError for URLs with a non-HTTP scheme.
* Raise ValueError for URLs missing a hostname.
Add validation for URL scheme and host presence.
Add validation for URL scheme and host presence
Copy link
Collaborator

@carltongibson carltongibson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants