https://github.com/peterhellberg/stub-web-server
Stub web server used for testing
https://github.com/peterhellberg/stub-web-server
Last synced: 12 months ago
JSON representation
Stub web server used for testing
- Host: GitHub
- URL: https://github.com/peterhellberg/stub-web-server
- Owner: peterhellberg
- License: mit
- Created: 2013-12-18T23:00:38.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-12-19T02:51:12.000Z (about 12 years ago)
- Last Synced: 2025-01-14T07:11:27.760Z (about 1 year ago)
- Language: Go
- Size: 105 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
stub-web-server
===============
Stub web server used for testing.

### Installation
```bash
go get github.com/peterhellberg/stub-web-server
```
### Usage
```
-body="": HTTP response body.
-code=200: HTTP response status code.
-port=":8080": HTTP service port (e.g., ':8080')
```
The server will respond with `body` and `code` on every request for now.
### License
```
The MIT License (MIT)
Copyright (c) 2013 Peter Hellberg
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
```