Creating a Sender/Receiver HTTP Server
TechAtBloomberg.com © 2024 Bloomberg Finance L.P. All rights reserved. • Create a basic HTTP server. • Allow a single-threaded server handling multiple clients. • Use the sender/receiver asynchronous std::execution (sender/receiver): http://wg21.link/p2300 • https://github.com/NVIDIA/stdexec.git • https://github.com/beman-project/execution26 • Sender/receiver networking: http://wg21.link/p2762 • Implementation: Implementation: https://github.com/beman-project/net29 • Async scope: http://wg21.link/p3149 Resources0 码力 | 8 页 | 2.19 MB | 5 月前3From Eager Futures/Promises to Lazy Continuations: Evolving an Actor Library Based on Lessons Learned from Large-Scale Deployments
"))motivating example std::string SpellCheck(std::string text) { auto body = http::UrlEncode({"text", text}); auto response = http::Post("https://www.online-spellcheck.com", body); return response.body; }motivating example std::string SpellCheck(std::string text) { auto body = http::UrlEncode({"text", text}); auto response = http::Post("https://www.online-spellcheck.com", body); return response.body; }motivating example std::string SpellCheck(std::string text) { auto body = http::UrlEncode({"text", text}); auto response = http::Post("https://www.online-spellcheck.com", body); return response.body;0 码力 | 264 页 | 588.96 KB | 5 月前3Tornado 6.5 Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 6.3 HTTP servers and clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . implementions of HTTP (HTTPServer and AsyncHTTPClient). • An asynchronous networking library including the classes IOLoop and IOStream, which serve as the building blocks for the HTTP components and can other protocols. The Tornado web framework and HTTP server together offer a full-stack alternative to WSGI. While it is possible to use the Tornado HTTP server as a container for other WSGI frameworks0 码力 | 272 页 | 1.12 MB | 2 月前3Tornado 6.5 Documentation
Prerequisites: Tornado 6.3 requires Python 3.9 or newer. The following optional packages may be useful:pycurl [http://pycurl.io/] is used by the optional tornado.curl_httpclient. Libcurl version 7.22 or higher is required browser HTTP servers and clients tornado.httpserver — Non-blocking HTTP server tornado.httpclient — Asynchronous HTTP client tornado.httputil — Manipulate HTTP headers and URLs tornado.http1connection http1connection – HTTP/1.x client/server implementation Asynchronous networking tornado.ioloop — Main event loop tornado.iostream — Convenient wrappers for non-blocking socketstornado.netutil — Miscellaneous network0 码力 | 437 页 | 405.14 KB | 2 月前3Django CMS 2.4.x Documentation
Introductory Tutorial. Requirements Python [http://www.python.org] 2.5 (or a higher release of 2.x). Django [http://www.djangoproject.com] 1.4.5, 1.5 or higher South [http://south.aeracode.org/] 0.7.2 or higher compatibility issues) django-sekizai [https://github.com/ojii/django-sekizai] 0.7 or higher html5lib [http://code.google.com/p/html5lib/] 0.90 or higher django-i18nurls [https://github.com/brocaar/django-i18nurls] your database size to increase. Installing in a virtualenv using pip Installing inside a virtualenv [http://www.virtualenv.org] is the preferred way to install any Django installation. This should work on0 码力 | 156 页 | 727.78 KB | 6 月前3Django CMS 2.1.x Documentation
Python [http://www.python.org] 2.5 (or a higher release of 2.x). Django [http://www.djangoproject.com] 1.2.3 (or a higher release of 1.2). South [http://south.aeracode.org/] 0.7.2 or higher PIL [http://www 1.1.3. On Microsoft Windows TODO. 1.2. Databases We recommend using PostgreSQL [http://www.postgresql.org/] or MySQL [http://www.mysql.com] with Django CMS. Installing and maintaining database systems is django-admin.py startproject myproject cd myproject python manage.py runserver Open 127.0.0.1:8000 [http://127.0.0.1:8000] in your browser. You should see a nice “It Worked” message from Django. 2.1.1.20 码力 | 81 页 | 554.09 KB | 6 月前3TiDB中文技术文档
为知识的传承献上您的一份力量! 如果当前文档生成时间太久,请到 书栈(BookStack.CN) 获取最新的文档,以跟上知识更新换代的步伐。 文档地址:http://www.bookstack.cn/books/pingcap-docs-cn 书栈官网:http://www.bookstack.cn 书栈开源:https://github.com/TruthHun 分享,让知识传承更久远! 感谢知识的创造 TiDB 快速入门指南 - 20 - 本文档使用 书栈(BookStack.CN) 构建 1. DROP USER 'tiuser'@'localhost'; 打开浏览器,访问以下监控平台: 地址: http://172.16.10.3:3000 , 默认帐户和密码为: admin @ admin 。 PD Storage Capacity : TiDB 集群总可用数据库空间大小 Current Storage 书栈(BookStack.CN) 构建 默认: true 值可以为 (true) 或者 (false). (true) 表明开启状态监听端口。 (false) 表明关闭。状态监听端口 用于通过 HTTP 方式对外报告一些服务内部信息 tidb-server 是否运行 DDL 语句,集群内大于两台以上 tidb-server 时设置 默认: true 值可以为 (true) 或者 (false).0 码力 | 444 页 | 4.89 MB | 5 月前3SOFAMOSN持续演进路径及实践分享
技术案例能力 0.1.0 0.2.0 0.3.0 0.4.0 Ø TCP代理/7层通用代理 Ø 简单匹配路由 Ø 集群管理 & 基本负载均衡(RR、 RANDOM) Ø SofaRpc及HTTP/1.1、 HTTP/2.0支持 Ø 进程平滑升级 Ø SOFAMesh集成,支持 xDS on ADS Ø X-Protocol协议扩展机制, 以及Dubbo支持 Ø 支持network/stream Retry、DirectResponse、 HTTP Header add/delete、 流控、故障注入等 Ø 支持必要的admin接口性能 0.1.0 0.2.0 0.3.0 0.4.0 Ø 内存复用框架 Ø Slab style buffer Ø Raw-Epoll模式 Ø 读合并 Ø 协程池化 Ø 调度均衡 Ø SOFARPC深度优化 Ø TLS官方库IO优化 Ø HTTP1.1/HTTP2.0 IO优化 断开链接 继续读取数据技术案例 – HTTP/2.0优化 官方HTTP/2.0实现问题: 1. syscall read较多,效率低下 2. 每个stream分配单独的goroutine处理, 调度开销高 3. 临时对象多,GC占比高 4. 基本实现了RFC中MUST部分,部分功 能需求上不匹配,如GRPC trailer实现技术案例 – HTTP/2.0优化 优化思路:适配MOSN框架,复用官方实现核心结构体和解析流程0 码力 | 29 页 | 7.03 MB | 5 月前3Django CMS 3.8.x Documentation
with username/password admin/admin. 1.2.4. Start up the runserver python manage.py runserver Open http://localhost:8000/ in your browser, where you should be invited to login, and then create a new page 3.1.1. Install polls Install the application from its GitHub repository using pip: pip install git+http://git@github.com/divio/django-polls.git#egg=polls Let’s add this application to our project. Add admin - http://localhost:8000/admin/ - and find the Polls application. Create a new Poll, for example: Question: Which browser do you prefer? Choices: Safari Firefox Chrome Now if you visit http://loca0 码力 | 413 页 | 1.67 MB | 6 月前3Django CMS 3.9.x Documentation
directory cd mysite Start the server using following command cd mysite python manage.py runserver Open http://localhost:8000/ in your browser, where you should be invited to login, and then create a new page 3.1.1. Install polls Install the application from its GitHub repository using pip: pip install git+http://git@github.com/divio/django-polls.git#egg=polls Let’s add this application to our project. Add admin - http://localhost:8000/admin/ - and find the Polls application. Create a new Poll, for example: Question: Which browser do you prefer? Choices: Safari Firefox Chrome Now if you visit http://loca0 码力 | 417 页 | 1.68 MB | 6 月前3
共 144 条
- 1
- 2
- 3
- 4
- 5
- 6
- 15