Http Abstractions for parsing Http headers needed for conneg

Moved from http abstractions.
needs a length check on inputArray