https://github.com/reoring/quickproxy
Go Library for a easy HTTP proxy
https://github.com/reoring/quickproxy
Last synced: 3 months 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 (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-12-07T18:56:49.000Z (over 11 years ago)
- Last Synced: 2025-03-19T23:09:30.385Z (4 months ago)
- Language: Go
- Homepage:
- Size: 117 KB
- Stars: 0
- Watchers: 1
- 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()
}
```