Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
fc0fefb5
Commit
fc0fefb5
authored
Aug 29, 2018
by
zyearn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix namespace typo in cn/http_client.md and cn/http_service.md
parent
33538c6b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
http_client.md
docs/cn/http_client.md
+1
-1
http_service.md
docs/cn/http_service.md
+1
-1
No files found.
docs/cn/http_client.md
View file @
fc0fefb5
...
...
@@ -158,7 +158,7 @@ Notes on http header:
# 压缩request body
调用Controller::set_request_compress_type(b
aidu::
rpc::COMPRESS_TYPE_GZIP)将尝试用gzip压缩http body。
调用Controller::set_request_compress_type(brpc::COMPRESS_TYPE_GZIP)将尝试用gzip压缩http body。
“尝试”指的是压缩有可能不发生,条件有:
...
...
docs/cn/http_service.md
View file @
fc0fefb5
...
...
@@ -279,7 +279,7 @@ cntl->http_request().uri().SetQuery("time", "2015/1/2");
http服务常对http body进行压缩,可以有效减少网页的传输时间,加快页面的展现速度。
设置Controller::set_response_compress_type(b
aidu::
rpc::COMPRESS_TYPE_GZIP)后将
**尝试**
用gzip压缩http body。“尝试“指的是压缩有可能不发生,条件有:
设置Controller::set_response_compress_type(brpc::COMPRESS_TYPE_GZIP)后将
**尝试**
用gzip压缩http body。“尝试“指的是压缩有可能不发生,条件有:
-
请求中没有设置Accept-encoding或不包含gzip。比如curl不加--compressed时是不支持压缩的,这时server总是会返回不压缩的结果。
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment