Documentation
¶
Index ¶
- Constants
- func Body(client *http.Client, req *http.Request, dest io.Writer) error
- func GetBody(client *http.Client, url string, dest io.Writer, lang ...*lcconv.LngCntry) error
- func NewBareReq(method, url string, body io.Reader) (*http.Request, error)
- func SetReqAccLang(req *http.Request, lang ...*lcconv.LngCntry) error
Constants ¶
View Source
const UserAgent = "imdb2mkvtags/1.0"
Variables ¶
This section is empty.
Functions ¶
func Body ¶
Makes an HTTP request and writes the body to dest. If client is nil, the library's default client will be used.
func GetBody ¶
Makes an HTTP request to URL url, writes the answer's body to dest. If client is nil the library's default client will be used. If lang is not nil, the parameter will be used to set the request's Accept-Language parameter.
func NewBareReq ¶
Returns a new http request with default header fields
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.