Ticket #3 (assigned enhancement)

Opened 6 years ago

Last modified 5 years ago

Expose HTTP header parsing

Reported by: bringert Owned by: sof
Priority: minor Milestone:
Component: component1 Version:
Keywords: Cc: newsham@…

Description

---------- Forwarded message ----------
From: Tim Newsham <newsham@lava.net>
Date: Wed, Sep 3, 2008 at 11:03 PM
Subject: Network.HTTP
To: bjorn@bringert.net


I'm looking for a library that can parse HTTP messages.  I noticed
that Network.HTTP, which you maintain, generates and parses HTTP
messages but only the generator is exposed externally (through the
Show interface).  Would it be possible to make a version which
exposes parsing as well?  For example, through a Read interface...

Tim Newsham
http://www.thenewsh.com/~newsham/

Change History

Changed 5 years ago by sof

  • owner changed from somebody to sof
  • status changed from new to assigned

Changed 5 years ago by sof

The HTTP-4000.x line of releases provides the following exports from Network.HTTP:

parseResponseHead
[String] -> Result ResponseData?
parseRequestHead
[String] -> Result RequestData?

along with (which HTTP-3001.x releases also support):

Network.HTTP.Headers.parseHeaders
[String] -> Result [Header]

[I'll leave the ticket as non-fixed, pending feedback]

Note: See TracTickets for help on using tickets.