MCPcopy Create free account
hub / github.com/imroc/req / Value

Method Value

internal/http2/frame.go:816–824  ·  view source on GitHub ↗
(id http2.SettingID)

Source from the content-addressed store, hash-verified

814}
815
816func (f *SettingsFrame) Value(id http2.SettingID) (v uint32, ok bool) {
817 f.checkValid()
818 for i := 0; i < f.NumSettings(); i++ {
819 if s := f.Setting(i); s.ID == id {
820 return s.Val, true
821 }
822 }
823 return 0, false
824}
825
826// Setting returns the setting from the frame at the given 0-based index.
827// The index must be >= 0 and less than f.NumSettings().

Callers 1

parseSettingsFrameFunction · 0.95

Calls 3

NumSettingsMethod · 0.95
SettingMethod · 0.95
checkValidMethod · 0.80

Tested by

no test coverage detected