Add HTTP (python built-in module) (#1248)
* Create HTTP.py * add http.py to list * edit text, typo :| Co-authored-by: MrBrain295 <66077254+MrBrain295@users.noreply.github.com> Co-authored-by: MrBrain295 <66077254+MrBrain295@users.noreply.github.com>
This commit is contained in:
14
h/HTTP.py
Normal file
14
h/HTTP.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import http.server
|
||||
import socketserver
|
||||
from http import HTTPStatus
|
||||
|
||||
|
||||
class Handler(http.server.SimpleHTTPRequestHandler):
|
||||
def do_GET(self):
|
||||
self.send_response(HTTPStatus.OK)
|
||||
self.end_headers()
|
||||
self.wfile.write(b'Hello World')
|
||||
|
||||
|
||||
httpd = socketserver.TCPServer(('', 8000), Handler)
|
||||
httpd.serve_forever()
|
||||
@@ -8,8 +8,7 @@ Thanks to everyone who continues to contribute; new languages are created every
|
||||
Make sure to see [contributing.md](/contributing.md) for instructions on contributing to the project!
|
||||
|
||||
<!--Languages start-->
|
||||
## Languages (875 total)
|
||||
|
||||
## Languages (871 total)
|
||||
* [!@#$%^&*()_+](%23/%21%40%23%24%25%5E%26%E2%88%97%28%29_%2B)
|
||||
* [():;#?!](%23/%28%29%CB%B8%3B%23%EF%BC%9F%21)
|
||||
* [0(nop^)](%23/0%28nop%5E%29)
|
||||
@@ -442,6 +441,7 @@ Make sure to see [contributing.md](/contributing.md) for instructions on contrib
|
||||
* [HQ9+](h/HQ9%2B.h)
|
||||
* [HQ9funge](h/HQ9funge)
|
||||
* [HTML](h/HTML.html)
|
||||
* [HTTP](h/HTTP.py)
|
||||
* [Hubot](h/Hubot.coffee)
|
||||
* [Huf](h/Huf.huf)
|
||||
* [Hy](h/Hy.hy)
|
||||
|
||||
Reference in New Issue
Block a user