Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Go Httpbin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Container registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Nix
Go Httpbin
Commits
ff41abb0
Commit
ff41abb0
authored
7 years ago
by
Will McCutchen
Browse files
Options
Downloads
Patches
Plain Diff
Flesh out README
parent
47ce16f9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+40
-4
40 additions, 4 deletions
README.md
with
40 additions
and
4 deletions
README.md
+
40
−
4
View file @
ff41abb0
# go-httpbin
A WIP golang port of https://httpbin.org/.
A reasonably complete and well-tested golang port of
[
Kenneth Reitz
][
kr
]
's
[
httpbin
][
httpbin-org
]
service, with zero dependencies outside the go stdlib.
[

](https://godoc.org/github.com/mccutchen/go-httpbin)
[

](http://travis-ci.org/mccutchen/go-httpbin)
[

](http://gocover.io/github.com/mccutchen/go-httpbin/httpbin)
## Building
## Usage
Run as a standalone binary, configured by command line flags or environment
variables:
```
$ go-httpbin -help
Usage of ./dist/go-httpbin:
-listen string
Listen address (default ":8080")
-max-duration duration
Maximum duration a response may take (default 10s)
-max-memory int
Maximum size of request or response, in bytes (default 1048576)
```
## Installation
```
go get github.com/mccutchen/go-httpbin/...
```
## See also
-
[
kennethreitz/httpbin
][
httpbin-repo
]
— the original Python version, without
which this knock-off wouldn't exist
-
[
ahmetb/go-httpbin
][
ahmet-go-httpbin
]
— another golang port
## Development
### Building
```
make
```
## Testing
##
#
Testing
```
make test
make testcover
```
## Running
##
#
Running
```
make run
```
[
kr
]:
https://github.com/kennethreitz
[
httpbin-org
]:
https://httpbin.org/
[
httpbin-repo
]:
https://github.com/kennethreitz/httpbin
[
ahmet-go-httpbin
]:
https://github.com/ahmetb/go-httpbin
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment