Remove unneeded allocations for HTTP messages.