Available on crate features
cli and haproxy and http and net only.Expand description
Shared bits for enriching CLI service responses with IP geolocation.
Functions§
- geo_
attribution_ html_ comment - The attribution notices as a single well-formed HTML comment, or
Nonewhen empty. Any--is neutralised so a notice cannot close the comment early (ours contain none, but the input is not assumed trusted). - geo_
attribution_ layer - A layer that appends each attribution
noticeto every response as anx-geo-attributionheader value. Pass the loaded databases’ notices (IpGeoDb::attributions()); add the layer only when that list is non-empty. - geo_
location_ rows - Human-readable
(label, value)rows for a resolvedGeoLocation, shared by the HTML renderers (theserve ippage panel and theserve fpreport table). Empty fields are omitted.