https://github.com/timmo001/mock-http-server-go
A mock http server written in Go
https://github.com/timmo001/mock-http-server-go
go golang http http-server mock
Last synced: about 2 months ago
JSON representation
A mock http server written in Go
- Host: GitHub
- URL: https://github.com/timmo001/mock-http-server-go
- Owner: timmo001
- License: apache-2.0
- Created: 2024-08-27T13:55:03.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-10-24T18:30:05.000Z (over 1 year ago)
- Last Synced: 2024-10-24T19:40:00.022Z (over 1 year ago)
- Topics: go, golang, http, http-server, mock
- Language: Go
- Homepage: https://timmo.dev
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Mock HTTP Server
This is a HTTP server written in [Go](https://go.dev) that can be used to test HTTP requests.
## Features
- `/echo` endpoint that returns the request body as the response body
- `/echo/details` endpoint that returns the request details as the response body in JSON format
- `/write?path=temp/abc.json` endpoint that writes the request body to a file defined. The file path is defined in the query parameter `path`
- Supports `multipart/form-data` and any other content type