Skip to content

Commit

Permalink
Merge pull request #2 from h0x0er/name-update
Browse files Browse the repository at this point in the history
Package rename
  • Loading branch information
h0x0er authored Nov 7, 2023
2 parents 199a041 + 0010db2 commit 790d243
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion ascii.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package parsehttp2frame
package http2util

import "strings"

Expand Down
2 changes: 1 addition & 1 deletion dump.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package parsehttp2frame
package http2util

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

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/h0x0er/parsehttp2frame
module github.com/h0x0er/http2util

go 1.21

Expand Down
2 changes: 1 addition & 1 deletion headermap.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package parsehttp2frame
package http2util

import (
"net/http"
Expand Down
4 changes: 2 additions & 2 deletions process_metaheaders.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package parsehttp2frame
package http2util

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

Expand Down Expand Up @@ -297,7 +297,7 @@ func hasStatusHeader(f *http2.MetaHeadersFrame) bool {
return len(status) > 0
}

// DumpMetaHeaders
// DumpMetaHeaders
func DumpMetaHeaders(f *http2.MetaHeadersFrame) (string, error) {

// HTTPResponse MetaHeaders
Expand Down
3 changes: 2 additions & 1 deletion tohttp.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package parsehttp2frame
package http2util

import (
"net/http"

"golang.org/x/net/http2"
)

// Frame2HTTPRequest
func Frame2HTTPRequest(f *http2.MetaHeadersFrame) (*http.Request, error) {
return processMetaHeadersForRequest(f)
Expand Down
3 changes: 1 addition & 2 deletions utils.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package parsehttp2frame
package http2util

import (
"bufio"
Expand All @@ -25,4 +25,3 @@ func BytesToHTTP2Frame(b []byte) (http2.Frame, error) {
func GetFrameType(f http2.Frame) http2.FrameType {
return f.Header().Type
}

0 comments on commit 790d243

Please sign in to comment.