1.3 七牛如何做HTTP服务测试## 七牛如何做 HTTP服务测试? 许式伟 2015-4-18 ## HTTP服务测试 • 单元测试 - 某个独立子服务的测试 • 集成测试 - 整个集群对外业务API的测试 • Stage环境 • Product环境 ## 怎么测? ## • 七牛早期做法 – 实现服务逻辑(Service Implementation) – 实现客户端SDK(Client Implementation) - 基于客户端SDK写测试案例(Test Case) ## • 问题 - 客户端SDK修改导致测试案例编不过 - 客户端SDK通常是使用方友好,而不是测试方友好 - 让服务端与客户端SDK耦合,容易过早陷入客户端SDK如何抽象更合理的细节,而不能专注于测试服务逻辑本身 ## 换个角度 • 直接基于协议测试呢? - 比如,基于 http.Client 类直接写测试案例 • 问题 - 代码相对冗长 代码相对冗长 - 业务逻辑表达不直观 - 写一些辅助函数能够略为改观,不过会有逐步写测试专用SDK的倾向 ## 七 牛当前做法 • 引入 httptest DSL 文法 - 更接近基于 http.Client 写测试案例的思路 - 但努力让代码更直白体现测试用意 1 #!/usr/bin/env qiniutest 4 # 这个例子算 qiniu httptest 工具的 Hello world0 码力 | 27 页 | 422.11 KB | 2 年前3
添加测试服务0 码力 | 1 页 | 128.00 B | 1 年前3
Creating a Sender/Receiver HTTP Server## +24 ## Creating a Sender/Receiver HTTP Server ## DIETMAR KÜHL 20 24 September 15 - 20 ## Objective • Create a basic HTTP server. • Allow a single-threaded server handling multiple clients. • 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 TechAtBloomberg.com0 码力 | 8 页 | 2.19 MB | 1 年前3
Apache HTTP Server Documentation Version 2.0# Apache HTTP Server Documentation Version 2.0  Apache Software Foundation February 3, 2014 ## About The PDF Documentation compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 This version of the Apache HTTP Server Documentation is converted from XML source files to L $ version of the documentation on the Apache HTTP Server website at http://httpd.apache.org/docs/2.0/ The Apache HTTP Server Documentation is maintained by the Apache HTTP Server Documentation Project. More information0 码力 | 682 页 | 2.05 MB | 1 年前3
Apache HTTP Server Documentation Version 2.2# Apache HTTP Server Documentation Version 2.2  Apache Software Foundation January 15, 2017 ## About The PDF Documentation compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 This version of the Apache HTTP Server Documentation is converted from XML source files to L $ version of the documentation on the Apache HTTP Server website at http://httpd.apache.org/docs/2.2/ The Apache HTTP Server Documentation is maintained by the Apache HTTP Server Documentation Project. More information0 码力 | 805 页 | 2.51 MB | 1 年前3
Apache HTTP Server Documentation Version 2.4Apache HTTP Server Documentation Version 2.4 Apache Software Foundation October 3, 2017 ## About The PDF Documentation Licensed to the Apache Software Foundation (ASF) under one or more contributor compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 This version of the Apache HTTP Server Documentation is converted from XML source files to L $ version of the documentation on the Apache HTTP Server website at http://httpd.apache.org/docs/2.4/ The Apache HTTP Server Documentation is maintained by the Apache HTTP Server Documentation Project. More information0 码力 | 1111 页 | 4.11 MB | 1 年前3
Apache HTTP Server Documentation Version 2.4# Apache HTTP Server Documentation Version 2.4  Apache Software Foundation March 13, 2014 ## About The PDF Documentation compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 This version of the Apache HTTP Server Documentation is converted from XML source files to L $ version of the documentation on the Apache HTTP Server website at http://httpd.apache.org/docs/2.4/ The Apache HTTP Server Documentation is maintained by the Apache HTTP Server Documentation Project. More information0 码力 | 1031 页 | 3.23 MB | 1 年前3
Apache HTTP Server Documentation Version 2.4Apache HTTP Server Documentation Version 2.4 Apache Software Foundation March 21, 2018 ## About The PDF Documentation Licensed to the Apache Software Foundation (ASF) under one or more contributor license compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 This version of the Apache HTTP Server Documentation is converted from XML source files to L $ version of the documentation on the Apache HTTP Server website at http://httpd.apache.org/docs/2.4/ The Apache HTTP Server Documentation is maintained by the Apache HTTP Server Documentation Project. More information0 码力 | 1125 页 | 4.15 MB | 1 年前3
Apache HTTP Server Documentation Version 2.4# Apache HTTP Server Documentation Version 2.4  Apache Software Foundation February 3, 2014 ## About The PDF Documentation compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 This version of the Apache HTTP Server Documentation is converted from XML source files to L $ version of the documentation on the Apache HTTP Server website at http://httpd.apache.org/docs/2.4/ The Apache HTTP Server Documentation is maintained by the Apache HTTP Server Documentation Project. More information0 码力 | 1031 页 | 3.23 MB | 1 年前3
HTTP & AJAX# 06.HTTP & AJAX # 19 décembre 2023 ## Développement web il3 HTTP & AJAX HE-Arc (DGR) 2022 ## HyperText Transfer Protocol • Protocole application : invention www en 1990 (v0.9) - Connexion Connexion, GET, réponse, fermeture • HTTP 1.0 (1996) - Entêtes de requête (Host, Referer, User-Agent, ...) et réponse (Content-Type, Set-Cookie, Location, ...) • HTTP 1.1 (1997) - Nouveaux entêtes (Keep-alive obligatoire • HTTP 2.0 $ ^{1} $ (2015) - Binaire, multiplexage connexions, compression entêtes, push, ... – Supporté par presque tous $ ^{2} $ les navigateurs, une majorité de serveurs • HTTP 3.0 $ ^{3}0 码力 | 11 页 | 91.09 KB | 2 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100
相关搜索词
HTTP服务测试单元测试集成测试Stage环境Product环境cppcon_add_testserviceCMakeSOURCESLIBRARIESsender/receiver HTTP serverasynchronous frameworkminimalistic networking interfaceevent loopasync_scopeApache HTTP Server升级新功能构建系统多协议支持非Unix平台性能API变化IPv6过滤器多语言错误响应模块开发模块配置认证缓存Developer DocumentationModulePlatform-specific NotesConfigurationAPI changesUpgradingModulesSupporting ProgramsHTTPAJAXXHRFetch APIjQuery













