Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRequestFromForm ¶
func NewRequestFromForm(form *html.Node, currentURL *url.URL, filterFunc InputFilterFunc) (*http.Request, error)
NewRequestFromForm builds a request that simulates submitting the given form. It honors: Form method (defaults to GET) Form action (defaults to currentURL if missing, or currentURL's scheme/host if server-relative) Input values from <input name="..." value="..."> elements * only the first type="submit" input's value is included * only radio and checkbox inputs with the "checked" attribute are included
Types ¶
type InputFilterFunc ¶
Click to show internal directories.
Click to hide internal directories.