Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

docs(hertz): fix doc about client Get and Post #1419

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
DMwangnima merged 1 commit into cloudwego:main from gaspardruan:patch-client
Sep 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions content/en/docs/hertz/tutorials/basic-feature/client.md
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func main() {

### Get

The `Get` function returns the status code of the URL and the response body. If dst is too small, it will be replaced by the response body and returned, otherwise a new slice will be assigned.
The `Get` function returns the status code of the URL and the response body. The contents of dst will be replaced by the body and returned, if the dst is too small a new slice will be allocated.

The function will automatically follow the redirect.

Expand All @@ -268,7 +268,7 @@ func main() {

### Post

The `Post` function sends a POST request to the specified URL using the given POST parameters. If dst is too small, it will be replaced by the response body and returned, otherwise a new slice will be assigned.
The `Post` function sends a POST request to the specified URL using the given POST parameters. The contents of dst will be replaced by the body and returned, if the dst is too small a new slice will be allocated.

The function will automatically follow the redirect.

Expand Down
4 changes: 2 additions & 2 deletions content/zh/docs/hertz/tutorials/basic-feature/client.md
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func main() {

### Get

Get 函数返回 URL 的状态码和响应体。如果 dst 太小,则将被响应体替换并返回,否则将分配一个新的切片
Get 函数返回 URL 的状态码和响应体。dst 将被响应体替换并返回,如果 dst 太小,将分配一个新的切片

该函数会自动跟随重定向。

Expand All @@ -261,7 +261,7 @@ func main() {

### Post

Post 函数使用给定的 POST 参数向指定的 URL 发送 POST 请求。如果 dst 太小,则将被响应体替换并返回,否则将分配一个新的切片
Post 函数使用给定的 POST 参数向指定的 URL 发送 POST 请求。dst 将被响应体替换并返回,如果 dst 太小,则将分配一个新的切片

该函数会自动跟随重定向。

Expand Down

AltStyle によって変換されたページ (->オリジナル) /