Skip to content

Commit f5e1492

Browse files
committed
updated README with GetWithClient()
1 parent ff1df43 commit f5e1492

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Exported variables and functions implemented till now :
1212
var Headers map[string]string // Set headers as a map of key-value pairs, an alternative to calling Header() individually
1313
var Cookies map[string]string // Set cookies as a map of key-value pairs, an alternative to calling Cookie() individually
1414
func Get(string) (string,error) // Takes the url as an argument, returns HTML string
15+
func GetWithClient(string, *http.Client) // Takes the url and a custom HTTP client as arguments, returns HTML string
1516
func Header(string, string) // Takes key,value pair to set as headers for the HTTP request made in Get()
1617
func Cookie(string, string) // Takes key, value pair to set as cookies to be sent with the HTTP request in Get()
1718
func HTMLParse(string) Root // Takes the HTML string as an argument, returns a pointer to the DOM constructed

0 commit comments

Comments
 (0)