update pkg/http package license comment

p/wechat
Michael Li 1 year ago
parent 9b345355de
commit 1f6be9ac6a
No known key found for this signature in database

@ -1,6 +1,6 @@
// Copyright 2023 Michael Li <alimy@gility.net>. All rights reserved. // Copyright 2023 ROC. All rights reserved.
// Use of this source code is governed by Apache License 2.0 that // Use of this source code is governed by a MIT style
// can be found in the LICENSE file. // license that can be found in the LICENSE file.
package http package http
@ -55,11 +55,11 @@ func (s *wormClient) Do(req *http.Request, fn ResponseFn) {
item := &requestItem{req, fn} item := &requestItem{req, fn}
select { select {
case s.requestCh <- item: case s.requestCh <- item:
// simepleClient.Do send request item by requestCh chan // send request item by requestCh chan
default: default:
select { select {
case s.requestTempCh <- item: case s.requestTempCh <- item:
// simepleClient.Do send request item by requestTempCh chan" // send request item by requestTempCh chan"
default: default:
go func() { go func() {
s.do(item) s.do(item)

@ -1,6 +1,6 @@
// Copyright 2023 Michael Li <alimy@gility.net>. All rights reserved. // Copyright 2023 ROC. All rights reserved.
// Use of this source code is governed by Apache License 2.0 that // Use of this source code is governed by a MIT style
// can be found in the LICENSE file. // license that can be found in the LICENSE file.
// package http contain some custom help function for std http library. // package http contain some custom help function for std http library.

@ -1,6 +1,6 @@
// Copyright 2023 Michael Li <alimy@gility.net>. All rights reserved. // Copyright 2023 ROC. All rights reserved.
// Use of this source code is governed by Apache License 2.0 that // Use of this source code is governed by a MIT style
// can be found in the LICENSE file. // license that can be found in the LICENSE file.
package http_test package http_test

@ -1,6 +1,6 @@
// Copyright 2023 Michael Li <alimy@gility.net>. All rights reserved. // Copyright 2023 ROC. All rights reserved.
// Use of this source code is governed by Apache License 2.0 that // Use of this source code is governed by a MIT style
// can be found in the LICENSE file. // license that can be found in the LICENSE file.
package http package http

@ -1,6 +1,6 @@
// Copyright 2023 Michael Li <alimy@gility.net>. All rights reserved. // Copyright 2023 ROC. All rights reserved.
// Use of this source code is governed by Apache License 2.0 that // Use of this source code is governed by a MIT style
// can be found in the LICENSE file. // license that can be found in the LICENSE file.
package http package http

Loading…
Cancel
Save