Skip to content

Commit

Permalink
http,dat: significant cleanup of http driver
Browse files Browse the repository at this point in the history
  • Loading branch information
kjekac committed Nov 13, 2024
1 parent 4c4e0ed commit 8623c1f
Show file tree
Hide file tree
Showing 4 changed files with 433 additions and 289 deletions.
4 changes: 3 additions & 1 deletion sire/driver_http.sire
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ TRUE
| if (barIsEmpty data)
| trk [connectionClosed=io]
| return ()
@ updatedBuffer | processHttpChunk buffer data
: updatedBuffer < maybeCase | processHttpChunk buffer data
| launch (TCP_SHUT io) return
| trk [=io tookBytes=(barLen data) received=(getReceivedLength buffer) expected=(mayExplainContentLength buffer)]
| ifNot (validRequest updatedBuffer)
| processConnection io getResponse updatedBuffer return
| trk [validRequestOn=io]
Expand Down
Loading

0 comments on commit 8623c1f

Please sign in to comment.