Last active
November 10, 2023 19:09
-
-
Save lordjabez/81bb3647bb61f5f272f4108c7e19f1fd to your computer and use it in GitHub Desktop.
Simply python server that echos back what it's sent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import bottle | |
@bottle.route('<path:path>', method=['GET', 'POST', 'PUT', 'PATCH']) | |
def echo(path): | |
return bottle.request.body | |
bottle.run(host='localhost', port=8080) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment