Categorygithub.com/syhlion/greq
modulepackage
1.1.4
Repository: https://github.com/syhlion/greq.git
Documentation: pkg.go.dev

# README

restful web service client

Go Report Card Build Status

restful web service reqeust tool

Requirements

Install

go get github.com/syhlion/greq

Usage

func main(){

    //need import https://github.com/syhlion/requestwork.v2
    worker:=requestwork.New(50)
    debug:=true

    client:=greq.New(worker,15*time.Second,debug)

    //GET
    data,httpstatus,err:=client.Get("https://tw.yahoo.com",nil)

    //POST
    v := url.Values{}
    v.Add("data", string(data))
    data,httpstatus,err:=client.Post("https://tw.yahoo.com",bytes.NewBufferString(v.Encode()))

}

# Functions

New return http client.

# Structs

Client instance.
No description provided by the author