Head API added. Opt renamed to Options. Tests updated. More documentation added.

This commit is contained in:
Musab Gültekin
2019-06-08 20:13:16 +03:00
parent 95d97436bf
commit b90908066b
4 changed files with 31 additions and 16 deletions

View File

@ -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 {