Skip to content

Latest commit

 

History

History
24 lines (13 loc) · 477 Bytes

Readme.md

File metadata and controls

24 lines (13 loc) · 477 Bytes

About

httplib.go is a simple extension of Go's http client that provides a nice fluid interface for building HTTP requests

Installation

go get github.com/hoisie/httplib

Usage

This is a small usage example:

package main

import "github.com/hoisie/httplib"

//get the google home page
c := new(httplib.Client)
resp, err := c.Request ("http://google.com", "GET", nil, "")
data := ioutil.ReadAll( resp.Body )
println(string(data))