https://github.com/a-poor/requests
A quick and easy HTTP request library written in Go.
https://github.com/a-poor/requests
go golang hacktoberfest http requests
Last synced: about 1 year ago
JSON representation
A quick and easy HTTP request library written in Go.
- Host: GitHub
- URL: https://github.com/a-poor/requests
- Owner: a-poor
- License: mit
- Created: 2021-09-09T22:16:39.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-03-09T00:03:05.000Z (over 4 years ago)
- Last Synced: 2025-03-26T06:35:59.599Z (about 1 year ago)
- Topics: go, golang, hacktoberfest, http, requests
- Language: Go
- Homepage: https://a-poor.github.io/requests
- Size: 517 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# requests
[](https://pkg.go.dev/github.com/a-poor/requests)
[](https://pkg.go.dev/github.com/a-poor/requests)
[](https://github.com/a-poor/requests/actions/workflows/go.yml)
[](https://goreportcard.com/report/github.com/a-poor/requests)
[](https://github.com/a-poor/requests/blob/main/LICENSE)

[](https://sourcegraph.com/github.com/a-poor/requests?badge)
[](https://www.codefactor.io/repository/github/a-poor/requests/overview/main)
_created by Austin Poor_
A quick and easy HTTP request library written in Go.
This library is inspired by the Python Requests library. I wrote it for myself in order to make the HTTP client process a little more _ergonomic_ when writing Go code.
Check out some more examples and documentation here: [a-poor.github.io/requests](https://a-poor.github.io/requests)
## Table of Contents
* [Installation](#installation)
* [Quick Start](#quick-start)
* [Dependencies](#dependencies)
* [Contributing](#contributing)
* [License](#license)
## Installation
Installation is quick and easy!
```bash
go get github.com/a-poor/requests
```
## Quick Start
Here's a quick example of `requests` in action.
```go
package main
import (
"fmt"
"github.com/a-poor/requests"
)
func main() {
// Send the request
res, err := requests.SendGetRequest("https://google.com")
// If there was an error, print and return
if err != nil {
fmt.Printf("Error: %e\n", err)
return
}
// Print the response's status code
fmt.Printf("Status Code: %d\n", res.StatusCode)
}
```
## Dependencies
Only the standard library!
## Contributing
Pull requests are super welcome! For major changes, please open an issue first to discuss what you would like to change. And please make sure to update tests as appropriate.
_Or_... feel free to just open an issue with some thoughts or suggestions or even just to say _Hi_ and tell me if this library has been helpful!
## License
[MIT](./LICENSE)