Head API added. Opt renamed to Options. Tests updated. More documentation added.
This commit is contained in:
@ -6,6 +6,8 @@ import (
|
||||
"net/url"
|
||||
)
|
||||
|
||||
// Response type wraps http.Response
|
||||
// Contains parsed response data and Geziyor functions.
|
||||
type Response struct {
|
||||
*http.Response
|
||||
Body []byte
|
||||
@ -15,6 +17,7 @@ type Response struct {
|
||||
Exports chan map[string]interface{}
|
||||
}
|
||||
|
||||
// JoinURL joins base response URL and provided relative URL.
|
||||
func (r *Response) JoinURL(relativeURL string) string {
|
||||
parsedRelativeURL, err := url.Parse(relativeURL)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user