def Text.trim_ows
import bend-trace-context@0.2.0.0/trace_context.bend as TraceContextimport Base
2788# The text without the optional whitespace at its start and at its end (RFC
2789# 9110, section 5.5: "A field value does not include leading or trailing
2790# whitespace"). Reversing brings the end to the front, and reversing again
2791# brings it back.
2792def Text.trim_ows(text: String) -> String:
2793 String.reverse(Text.drop_ows(String.reverse(Text.drop_ows(text))))