Skip to content

Commit

Permalink
doc: remove basic_usage.md internal words (#1151)
Browse files Browse the repository at this point in the history
  • Loading branch information
AsterDY authored Sep 20, 2024
1 parent 42f497c commit 77b6e1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ func main() {
req.Header.Set("token", "1")
customReq, err := generic.FromHTTPRequest(req) // Considering that businesses might use third-party HTTP requests, you can create your own conversion function
// customReq *generic.HttpRequest
// Since the HTTP generic method is obtained from the HTTP request via BAM rules, it's okay to leave it empty
// Since the HTTP generic method is obtained from the HTTP request via [Thrift-HTTP Mapping's IDL Standards], it's okay to leave it empty
resp, err := cli.GenericCall(ctx, "", customReq)
realResp := resp.(*generic.HTTPResponse)
realResp.Write(w) // Write back to ResponseWriter, used for HTTP gateway
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ func main() {
req.Header.Set("token", "1")
customReq, err := generic.FromHTTPRequest(req) // 考虑到业务有可能使用第三方 http request,可以自行构造转换函数
// customReq *generic.HttpRequest
// 由于 http 泛化的 method 是通过 bam 规则从 http request 中获取的,所以填空就行
// 由于 http 泛化的 method 是通过[Thrift-HTTP 映射的 IDL 规范]从 http request 中获取的,所以填空就行
resp, err := cli.GenericCall(ctx, "", customReq)
realResp := resp.(*generic.HTTPResponse)
realResp.Write(w) // 写回 ResponseWriter,用于 http 网关
Expand Down

0 comments on commit 77b6e1f

Please sign in to comment.