Add TextHeaders.getAndRemove(...)

See #2649 for motivation
Again I think we should use 2