C or Assembly? what OS? Are you talking about writing to the TCP/IP network layer or rewriting it at like an ethernet firmware layer?
Although you can tell I'm fumbling here, I think the question I'm asking related more to the TCP/IP network layer. How can I construct a simple HTTP request at that level while adding the least overhead via the language/tools I'm using?
What would rewriting the ethernet firmware look like?