Modify comment syntax error (#5094)

This commit is contained in:
王哈哈
2022-11-10 18:22:37 +08:00
committed by GitHub
parent a658b9fbe0
commit 1bb607b286
16 changed files with 24 additions and 24 deletions

View File

@@ -19,17 +19,17 @@ import (
)
var InvalidUrl = berror.DefineCode(4001001, moduleName, "InvalidUrl", `
You pass a invalid url to httplib module. Please check your url, be careful about special character.
You pass an invalid url to httplib module. Please check your url, be careful about special character.
`)
var InvalidUrlProtocolVersion = berror.DefineCode(4001002, moduleName, "InvalidUrlProtocolVersion", `
You pass a invalid protocol version. In practice, we use HTTP/1.0, HTTP/1.1, HTTP/1.2
You pass an invalid protocol version. In practice, we use HTTP/1.0, HTTP/1.1, HTTP/1.2
But something like HTTP/3.2 is valid for client, and the major version is 3, minor version is 2.
but you must confirm that server support those abnormal protocol version.
`)
var UnsupportedBodyType = berror.DefineCode(4001003, moduleName, "UnsupportedBodyType", `
You use a invalid data as request body.
You use an invalid data as request body.
For now, we only support type string and byte[].
`)

View File

@@ -112,7 +112,7 @@ func Head(url string) *BeegoHTTPRequest {
return NewBeegoRequest(url, "HEAD")
}
// BeegoHTTPRequest provides more useful methods than http.Request for requesting a url.
// BeegoHTTPRequest provides more useful methods than http.Request for requesting an url.
type BeegoHTTPRequest struct {
url string
req *http.Request