Add TextHeaders.getAndRemove(...)

See #2649 for motivation
why is this even needed ?