Parsing an HTTP Request
mmhaskell.com·12w·
Discuss: Hacker News

Last week, we discussed the utility of writing simple tools from scratch. We started writing a simple HTTP server by defining our request and response types. Today, we’ll write a parser for the HTTP request.

We’ll use the Megaparsec library throughout this article, without dwelling on too many details of its usage. If you want to learn all about parsing in Haskell from the ground up, including all the details of using this library, check out our course, Solve.hs. Module 4 in particular will teach you all about parsing!

Outlining our Parser

In our Haskell LeetCode series, we discussed top-down a…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help