Add TextHeaders.getAndRemove(...)

See #2649 for motivation
@normanmaurer Yes, I agree with you. Using Long or Integer as return type seems more approach in this situation.