Skip to content

Commit

Permalink
Add HTTP (python built-in module) (#1248)
Browse files Browse the repository at this point in the history
* Create HTTP.py

* add http.py to list

* edit text, typo :|

Co-authored-by: MrBrain295 <[email protected]>

Co-authored-by: MrBrain295 <[email protected]>
  • Loading branch information
ThePeeps191 and MrBrain295 authored Jan 21, 2022
1 parent 3c5bd89 commit 314d1eb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions h/HTTP.py
Original file line number Diff line number Diff line change
@@ -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()
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 314d1eb

Please sign in to comment.