package
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: May 7, 2023
License: Unlicense
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package hparser provides a simple http wrapper that returns the usual HTTP
response with a parsed HTML.
Default returns a basic http.Client with a cookie jar. It implements the
Client interface.
Get issues a GET to the specified URL and parses the response body.
PostForm issues a POST to the specified URL, with data's keys and values
URL-encoded as the request body. The response body is parsed and closed.
Client is an interface that will be used by the Get and PostForm functions.
It allows to use a custom HTTP client with a middleware.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.