This content originally appeared on DEV Community and was authored by Alexander
A dump server is a server that responds to client requests with data that it retrieves from a standard HTTP dump.
Just like a static server, the dump server does not execute the code, but only gives the ready data to the client.
The static server responds with the contents of the files, and the dump server responds with dumps.
The dump includes the response body, status code, and headers.
The dump server allows you to serve any kind of request, not just GET
method, like a static server.
With a dump server, you can simulate any API without writing code.
If you need to start working on the frontend, and the backend is not ready yet, then you need a dump server.
Meet the DeepfakeHTTP dump server:
xnbox / DeepfakeHTTP
? DeepfakeHTTP is a web server that uses HTTP dumps as a source for responses.
DeepfakeHTTP – Your 100% static dynamic backend
Features
- No dependencies
- No installation
- No configuration files
- Single-file executable
Command Line Interface (CLI)
java -jar df.jar [options] [dump1.txt] [dump2.txt] ...
Options:
--help print help message
--info print dump files statistics as JSON
--requests print dump requests as JSON
--port TCP port number, default: 8080
--collect <file> append live request/response dumps to file
--no-log disable request/response console logging
--no-etag disable ETag optimization
--no-watch disable watch dump files for changes
Prerequisites
- Java 15 or above
Get started
- Download the latest release of
df.jar
- …
This content originally appeared on DEV Community and was authored by Alexander
Alexander | Sciencx (2021-09-06T23:14:18+00:00) What is a DUMP SERVER and what are its advantages over a static server. Retrieved from https://www.scien.cx/2021/09/06/what-is-a-dump-server-and-what-are-its-advantages-over-a-static-server/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.