https://github.com/n0str/gorequests
GoRequests: HTTP requests for Humans
https://github.com/n0str/gorequests
Last synced: about 1 year ago
JSON representation
GoRequests: HTTP requests for Humans
- Host: GitHub
- URL: https://github.com/n0str/gorequests
- Owner: n0str
- License: mit
- Created: 2019-10-08T19:10:07.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-08T19:18:32.000Z (over 6 years ago)
- Last Synced: 2025-02-04T15:49:51.167Z (over 1 year ago)
- Language: Go
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
GoRequests: HTTP for Humans
==================================================
GoRequests is the library that simplifies HTTP requests. It was developed
in the image of famous Python requests library.
It is as simple as:
```go
package main
import (
"github.com/n0str/gorequests"
"log"
)
func main() {
http := http_session.New()
r := http.EasyRequest("GET", "https://httpbin.org/ip")
log.Printf("Response: %v", r.EasyJson())
log.Printf("Response: %v", r.EasyString())
}
```
Results:
```go
>>> Response: map[origin:178.70.140.98, 178.70.140.98]
>>> Response: {
"origin": "178.70.140.98, 178.70.140.98"
}
```