easyhttp::laptop:简单的Python HTTP服务器

时间:2021-03-14 06:21:08
【文件属性】:
文件名称:easyhttp::laptop:简单的Python HTTP服务器
文件大小:8KB
文件格式:ZIP
更新时间:2021-03-14 06:21:08
python http sockets webserver python3 :sparkles: easyhttp :sparkles: easyhttp是用于研究目的的简单HTTP服务器。 :rocket: 安装 使用软件包管理器安装easyhttp。 只需运行: pip install easyhttp :laptop: 快速开始 import easyhttp app = easyhttp . App () def index ( req , res ): res . send ( '

It \' s working!

' ) app . get ( '/' , index ) app . listen ( 3000 ) 您还可以使用其他HTTP方法: app . get ( '/' , index_get ) app . post ( '/' , index_post ) app . put ( '/' , index_put ) app . delete ( '/' , inde
【文件预览】:
easyhttp-master
----easyhttp()
--------Response.py(2KB)
--------ClientConnection.py(1KB)
--------__init__.py(27B)
--------SocketServer.py(1KB)
--------Request.py(959B)
--------RequestParser.py(2KB)
--------HttpServer.py(3KB)
----example()
--------UsersModel.py(350B)
--------app.py(173B)
--------UsersController.py(703B)
--------UsersRoutes.py(180B)
----LICENSE(1KB)
----setup.py(1KB)
----README.md(1KB)

网友评论