Skip to content

Commit 0010db2

Browse files
committed
renamed package
1 parent 199a041 commit 0010db2

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

Diff for: ascii.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Use of this source code is governed by a BSD-style
55
// license that can be found in the LICENSE file.
66

7-
package parsehttp2frame
7+
package http2util
88

99
import "strings"
1010

Diff for: dump.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package parsehttp2frame
1+
package http2util
22

33
// Note: Code is taken from https://cs.opensource.google/go/x/net/+/master:http2
44

Diff for: go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/h0x0er/parsehttp2frame
1+
module github.com/h0x0er/http2util
22

33
go 1.21
44

Diff for: headermap.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Use of this source code is governed by a BSD-style
55
// license that can be found in the LICENSE file.
66

7-
package parsehttp2frame
7+
package http2util
88

99
import (
1010
"net/http"

Diff for: process_metaheaders.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package parsehttp2frame
1+
package http2util
22

33
// Note: Code is taken from https://cs.opensource.google/go/x/net/+/master:http2
44

@@ -297,7 +297,7 @@ func hasStatusHeader(f *http2.MetaHeadersFrame) bool {
297297
return len(status) > 0
298298
}
299299

300-
// DumpMetaHeaders
300+
// DumpMetaHeaders
301301
func DumpMetaHeaders(f *http2.MetaHeadersFrame) (string, error) {
302302

303303
// HTTPResponse MetaHeaders

Diff for: tohttp.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
package parsehttp2frame
1+
package http2util
22

33
import (
44
"net/http"
55

66
"golang.org/x/net/http2"
77
)
8+
89
// Frame2HTTPRequest
910
func Frame2HTTPRequest(f *http2.MetaHeadersFrame) (*http.Request, error) {
1011
return processMetaHeadersForRequest(f)

Diff for: utils.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package parsehttp2frame
1+
package http2util
22

33
import (
44
"bufio"
@@ -25,4 +25,3 @@ func BytesToHTTP2Frame(b []byte) (http2.Frame, error) {
2525
func GetFrameType(f http2.Frame) http2.FrameType {
2626
return f.Header().Type
2727
}
28-

0 commit comments

Comments
 (0)