Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

drawing

Fluent Request

Fluent Request is a small library implemented over http package. Its objective is to provide a friendly and useful interface when running http requests.

Usage

Fluent request's usage is based on Fluent Interface or Chain Callbacks where the class setting methods returns the class itself. Check the example:

resp, err := FluentRequest().
                Method("GET").
                Url("https://jsonplaceholder.typicode.com/todos/1").
                Run()

body, _ := ioutil.ReadAll(resp.Body)

fmt.Println(string(body))

// output
//{
//   "userId": 1,
//   "id": 1,
//   "title": "delectus aut autem",
//   "completed": false
//}

About

A friendly http wrapper

Topics

Resources

Contributing

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages