-
-
Save panesofglass/1368696 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let rec loop : Async<unit> = | |
async { | |
let! req = HttpRequestParser.Parse buf read | |
let! resp = app.Handle req | |
let kA = isKeepAlive req | |
do! respond socket buf (setKeepAlive kA resp) | |
if isKeepAlive req then | |
return! loop | |
else | |
return () | |
} | |
loop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment