Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reoring/quickproxy
Go Library for a easy HTTP proxy
https://github.com/reoring/quickproxy
Last synced: 8 days ago
JSON representation
Go Library for a easy HTTP proxy
- Host: GitHub
- URL: https://github.com/reoring/quickproxy
- Owner: reoring
- License: mit
- Created: 2013-12-07T18:40:09.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-12-07T18:56:49.000Z (about 11 years ago)
- Last Synced: 2025-01-27T17:59:02.138Z (12 days ago)
- Language: Go
- Homepage:
- Size: 117 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Go Library for a easy HTTP proxy
==========Go Library for a easy HTTP proxy
## Examples
### Record request/response elapsed time.
```go
package mainimport (
"fmt"
"github.com/reoring/quickproxy"
)func main() {
quickproxy.Prepare(map[string]string{"port": "8081"})quickproxy.OnDone(func(doneRequestData *quickproxy.DoneRequestData) {
fmt.Print(doneRequestData.Request.URL)
fmt.Print(": ")
fmt.Print(doneRequestData.RoundTripTime.ElapsedTime())
fmt.Print("\n")
})quickproxy.Run()
}
```