Sanic app 模块主要定义了Sanic类,本文介绍Sanic类的API接口。Sanic app 模块该模块主要是类Sanic的定义:class sanic.app.San...
veelion 7年前 (2019-06-04) 阅读(8210) 评论(0) Sanic 类的url_for()方法的API接口。 url_for() 方法/函数定义url_for(view_name: str, **kwargs)根据视图名称和提供...
veelion 7年前 (2019-06-04) 阅读(5603) 评论(0) Sanic 类的static()方法的API接口。static() 方法/函数定义static(uri, file_or_directory, pattern='/?.+', use_modified_sinc...
veelion 7年前 (2019-06-04) 阅读(5981) 评论(0) Sanic 类的run()方法的API接口。 run() 方法/函数定义run(host: Optional[str] = None, port: Optional[int] = None, deb...
veelion 7年前 (2019-06-04) 阅读(5210) 评论(0) Sanic 类的route()方法的API接口。 route() 方法/函数定义route(uri, methods=frozenset({'GET'}), host=None, strict_sl...
veelion 7年前 (2019-06-04) 阅读(4978) 评论(0) Sanic 类的middleware()方法的API接口。middleware() 方法/函数定义middleware(middleware_or_request)装饰并注册中间件在请...
veelion 7年前 (2019-06-04) 阅读(4818) 评论(0) Sanic 类的listener()方法的API接口。listener() 方法/函数定义listener(event)从被装饰的函数创建一个监听器。参数event...
veelion 7年前 (2019-06-04) 阅读(4833) 评论(0) Sanic 类的head(), options(), patch(), put()方法的API接口。 head() 方法/函数定义head(uri, host=None, strict_slashe...
veelion 7年前 (2019-06-04) 阅读(5083) 评论(0) Sanic 类的delete()方法的API接口。delete()方法/函数定义delete(uri, host=None, strict_slashes=None, version=None, name=No...
veelion 7年前 (2019-06-04) 阅读(4144) 评论(0) Sanic 类的post()方法的API接口。 post() 方法/函数定义post(uri, host=None, strict_slashes=None, stream=False, versi...
veelion 7年前 (2019-06-04) 阅读(5870) 评论(0) Sanic 类的get()方法的API接口。get() 方法/函数定义get(uri, host=None, strict_slashes=None, version=None, name=None)添...
veelion 7年前 (2019-06-04) 阅读(5611) 评论(0) Sanic 类的exception()方法的API接口。exception() 方法/函数定义exception(*exceptions)装饰要注册为异常处理程序的函数....
veelion 7年前 (2019-06-04) 阅读(4020) 评论(0) Sanic 类的create_server()方法的API接口。 create_server() 方法/函数定义coroutine create_server(host: Optional[str]...
veelion 7年前 (2019-06-04) 阅读(4999) 评论(0) Sanic 类的blueprint()方法的API接口。blueprint() 方法/函数定义blueprint(blueprint, **options)注册蓝图到应用。参数b...
veelion 7年前 (2019-06-04) 阅读(4593) 评论(0) Sanic 类的websocket()方法的API接口。websocket() 方法/函数定义websocket(uri, host=None, strict_slashes=None, subprotocol...
veelion 7年前 (2019-06-04) 阅读(4474) 评论(0) Sanic 类的add_websocket_route()方法的API接口。add_websocket_route() 方法/函数定义add_websocket_route(handler, uri, host...
veelion 7年前 (2019-06-04) 阅读(3836) 评论(0) Sanic 类的add_task()方法的API接口。add_task()方法/函数定义add_task(task)在循环开始后安排任务稍后运行。 与asyncio.ens...
veelion 7年前 (2019-06-04) 阅读(5931) 评论(0) Sanic 类的add_route()方法的API接口。add_route() 方法/函数定义:add_route(handler, uri, methods=frozenset({'GET'}), host...
veelion 7年前 (2019-06-04) 阅读(4495) 评论(0) 中国人有句话叫“天下文章一大抄”,但是在正规场合下“抄”是要付出代价的,比如考试、写论文是不能抄的,一旦被发现后果相当严重。在...
王平 7年前 (2019-06-03) 阅读(12783) 评论(8) 极客时间出品的《透视HTTP协议》由罗剑锋(Chrono)所作,罗剑锋(Chrono)是奇虎360技术专家,Nginx/OpenResty开源项目贡献者。本...
小猿 7年前 (2019-05-29) 阅读(7056) 评论(0)