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

Utilities to create *html.Node from http.Request and http.Response #60

Closed
wants to merge 1 commit into from
Closed

Conversation

MarcusAdriano
Copy link

@MarcusAdriano MarcusAdriano commented Mar 1, 2023

I've used this library a few days ago and I was forced to re-implement in my code LoadURL because my Get request needs customization like custom headers.

Basically there are two new functions:

  • LoadHttpResponse: interpret http response like LoadURL, but without make http request;
  • LoadRequest: make http request using provided request.

@zhengchun
Copy link
Contributor

Hello, @MarcusAdriano , First, thanks for your contribution. htmlquery package focusing on XPath query. I encourage developer to implement HTTP requests depend on your project instead of LoadURL(). Not plan add the new HTTP handler method for package, sorry.

@zhengchun zhengchun closed this Mar 1, 2023
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.

None yet

2 participants