Skip to content

refactor(x/net/http): Multiple fixes & adapt bodyStream struct

qiniu-x / golangci-lint failed Sep 20, 2024 in 13s

golangci-lint found 11 issues related to your changes

This is the detailed log.

If you have any questions about this comment, feel free to raise an issue here.

Annotations

Check warning on line 254 in x/net/http/request.go

See this annotation in the file changed.

@qiniu-x qiniu-x / golangci-lint

x/net/http/request.go#L254

too many arguments in call to sendTask.SetUserdata
	have (unsafe.Pointer, nil)
	want (unsafe.Pointer)

Check warning on line 378 in x/net/http/request.go

See this annotation in the file changed.

@qiniu-x qiniu-x / golangci-lint

x/net/http/request.go#L378

too many arguments in call to hyperReq.OnInformational
	have (func(userdata unsafe.Pointer, resp *hyper.Response), nil, nil)
	want (hyper.RequestOnInformationalCallback, unsafe.Pointer)

Check warning on line 520 in x/net/http/request.go

See this annotation in the file changed.

@qiniu-x qiniu-x / golangci-lint

x/net/http/request.go#L520

hyperReq.Method undefined (type *hyper.Request has no field or method Method)

Check warning on line 528 in x/net/http/request.go

See this annotation in the file changed.

@qiniu-x qiniu-x / golangci-lint

x/net/http/request.go#L528

hyperReq.URIParts undefined (type *hyper.Request has no field or method URIParts)

Check warning on line 557 in x/net/http/request.go

See this annotation in the file changed.

@qiniu-x qiniu-x / golangci-lint

x/net/http/request.go#L557

hyperReq.Version undefined (type *hyper.Request has no field or method Version)

Check warning on line 1 in x/net/http/body_stream.go

See this annotation in the file changed.

@qiniu-x qiniu-x / golangci-lint

x/net/http/body_stream.go#L1

: # github.com/goplus/llgoexamples/x/net/http

Check warning on line 65 in x/net/http/server.go

See this annotation in the file changed.

@qiniu-x qiniu-x / golangci-lint

x/net/http/server.go#L65

undefined: hyper.Http1ServerconnOptions

Check warning on line 66 in x/net/http/server.go

See this annotation in the file changed.

@qiniu-x qiniu-x / golangci-lint

x/net/http/server.go#L66

undefined: hyper.Http2ServerconnOptions

Check warning on line 387 in x/net/http/server.go

See this annotation in the file changed.

@qiniu-x qiniu-x / golangci-lint

x/net/http/server.go#L387

undefined: hyper.ResponseChannel

Check warning on line 22 in x/net/http/response.go

See this annotation in the file changed.

@qiniu-x qiniu-x / golangci-lint

x/net/http/response.go#L22

undefined: hyper.ResponseChannel

Check warning on line 47 in x/net/http/response.go

See this annotation in the file changed.

@qiniu-x qiniu-x / golangci-lint

x/net/http/response.go#L47

undefined: hyper.ResponseChannel