Skip to content

Commit

Permalink
♻️ refactor: refactoring request build and send logic
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Jun 24, 2023
1 parent d0a9da9 commit e499a39
Show file tree
Hide file tree
Showing 17 changed files with 1,382 additions and 895 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# HReq
# Greq

![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/gookit/greq?style=flat-square)
[![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/gookit/greq)](https://github.com/gookit/goutil)
Expand All @@ -7,9 +7,7 @@
[![Unit-Tests](https://github.com/gookit/greq/workflows/Unit-Tests/badge.svg)](https://github.com/gookit/greq/actions)
[![Coverage Status](https://coveralls.io/repos/github/gookit/greq/badge.svg?branch=main)](https://coveralls.io/github/gookit/greq?branch=main)

**HReq** A simple http client request builder and sender

> `greq` inspired from [dghubble/sling][1] and more projects, please see refers.
**greq** A simple http client request builder and sender

## Features

Expand Down Expand Up @@ -41,7 +39,7 @@ func main() {
resp, err := greq.New("https://httpbin.org").
JSONType().
UserAgent("custom-client/1.0").
PostDo("/post")
PostDo("/post", `{"name": "inhere"}`)

if err != nil {
panic(err)
Expand Down
6 changes: 2 additions & 4 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# HReq
# Greq

![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/gookit/greq?style=flat-square)
[![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/gookit/greq)](https://github.com/gookit/goutil)
Expand All @@ -7,9 +7,7 @@
[![Unit-Tests](https://github.com/gookit/greq/workflows/Unit-Tests/badge.svg)](https://github.com/gookit/greq/actions)
[![Coverage Status](https://coveralls.io/repos/github/gookit/greq/badge.svg?branch=main)](https://coveralls.io/github/gookit/greq?branch=main)

**HReq** A simple http client request builder and sender

> `greq` inspired from https://github.com/dghubble/sling and more projects, please see refers.
**greq** A simple http client request builder and sender

## 功能说明

Expand Down
Loading

0 comments on commit e499a39

Please sign in to comment.