Search code examples
chttpparsinggithubopen-source

What is HTTP Parser, where it is used, what does it do


I was reading C code at:- https://github.com/joyent/http-parser . But I don't know what is the meaning of the HTTP Parser . Can you please explain its meaning probably with example so I can contribute to this project.


Solution

  • HTTP Parser can be employed in the browser as well as in the server and it extracts the following information from HTTP messages:

    1 Header fields and values

    2 Content-Length

    3 Request method

    4 Response status code

    5 Transfer-Encoding

    6 HTTP version

    7 Request URL

    8 Message body