(id http2.SettingID)
| 814 | } |
| 815 | |
| 816 | func (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(). |
no test coverage detected