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
5a5b6ee9
Commit
5a5b6ee9
authored
7 years ago
by
Will McCutchen
Browse files
Options
Downloads
Patches
Plain Diff
Readme updates
parent
e6099f23
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
+26
-5
26 additions, 5 deletions
README.md
with
26 additions
and
5 deletions
README.md
+
26
−
5
View file @
5a5b6ee9
...
@@ -7,6 +7,7 @@ A reasonably complete and well-tested golang port of [Kenneth Reitz][kr]'s
...
@@ -7,6 +7,7 @@ A reasonably complete and well-tested golang port of [Kenneth Reitz][kr]'s
[

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

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

](http://gocover.io/github.com/mccutchen/go-httpbin/httpbin)
[

](http://gocover.io/github.com/mccutchen/go-httpbin/httpbin)
## Usage
## Usage
Run as a standalone binary, configured by command line flags or environment
Run as a standalone binary, configured by command line flags or environment
...
@@ -23,23 +24,43 @@ Usage of ./dist/go-httpbin:
...
@@ -23,23 +24,43 @@ Usage of ./dist/go-httpbin:
Port to listen on (default 8080)
Port to listen on (default 8080)
```
```
Docker images are
also available on
[
Docker Hub
][
docker-hub
]
:
Docker images are
published to
[
Docker Hub
][
docker-hub
]
:
```
```
$ docker run -P mccutchen/go-httpbin
$ docker run -P mccutchen/go-httpbin
```
```
## Installation
## Installation
```
```
go get github.com/mccutchen/go-httpbin/...
go get github.com/mccutchen/go-httpbin/...
```
```
## See also
-
[
kennethreitz/httpbin
][
httpbin-repo
]
— the original Python version, without
## Inspiration & prior art
which this knock-off wouldn't exist
-
[
ahmetb/go-httpbin
][
ahmet-go-httpbin
]
— another golang port
I've been a longtime user of
[
Kenneith Reitz
][
kr
]
's original httpbin.org, and
wanted to write a golang port for fun and to see how far I could get using only
the stdlib.
When I started this project, there were a handful of existing and incomplete
golang ports, with the most promising being
[
ahmetb/go-httpbin
][
ahmet
]
. This
project showed me how useful it might be to have an
`httpbin`
package available
for testing golang applications.
### Known differences from other httpbin versions
**Compared to [the original][httpbin-org]**
:
-
No
`/brotli`
endpoint (due to lack of support in Go's stdlib)
-
Response values which may be encoded as either a string or a list of strings
will always be encoded as a list of strings (e.g. request headers, query
params, form values)
**Compared to [ahmetb/go-httpbin][ahmet-go-httpbin]**
:
-
No dependencies on 3rd party packages
-
More complete implementation of endpoints
## Development
## Development
...
...
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