page

package
v2.9.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Form

type Form struct {
	URL    string
	Method string
	Values *url.Values
}

func NewFormFromDocument

func NewFormFromDocument(doc *goquery.Document, formFilter string) (*Form, error)

If the document has multiple forms, the first form with an `action` attribute will be parsed. You can specify the exact form using a CSS filter.

func NewFormFromResponse

func NewFormFromResponse(res *http.Response, formFilter string) (*Form, error)

func (*Form) BuildRequest

func (form *Form) BuildRequest() (*http.Request, error)

func (*Form) Submit

func (form *Form) Submit(client *provider.HTTPClient) (*http.Response, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL