Documentation
¶
Index ¶
- func BuildURL(path string, queryParams ...neturl.Values) string
- func Matches(header, ct string) bool
- func Negotiate(header string, serverTypes []string) (string, bool)
- func ParseAccept(header string) []mediaRange
- func PrimaryAcceptMatches(header, produced string) bool
- func Uint64ToString[...](val T) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Negotiate ¶ added in v6.1.1
Negotiate selects the best server type according to the header. Returns the chosen type and true, or "", false when nothing matches.
func ParseAccept ¶ added in v6.1.1
func ParseAccept(header string) []mediaRange
ParseAccept returns media ranges sorted by q (desc) then specificity.
func PrimaryAcceptMatches ¶ added in v6.1.1
PrimaryAcceptMatches only checks if the first accept matches
func Uint64ToString ¶
func Uint64ToString[T uint64 | primitives.Slot | primitives.ValidatorIndex | primitives.CommitteeIndex | primitives.Epoch](val T) string
Uint64ToString is a util function that will convert uints to string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.