You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/hertz/tutorials/basic-feature/client.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -241,7 +241,7 @@ func main() {
241
241
242
242
### Get
243
243
244
-
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.
244
+
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.
245
245
246
246
The function will automatically follow the redirect.
247
247
@@ -268,7 +268,7 @@ func main() {
268
268
269
269
### Post
270
270
271
-
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.
271
+
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.
272
272
273
273
The function will automatically follow the redirect.
0 commit comments