Implemented buffering for asynchronous sockets.

This commit is contained in:
Dominik Picheta 2014-04-13 14:18:47 +01:00
commit 3612aca5fe
3 changed files with 38 additions and 4 deletions

View file

@ -134,7 +134,7 @@ proc processClient(client: PAsyncSocket, address: string,
return
case reqMethod.normalize
of "get":
of "get", "post", "head", "put", "delete", "trace", "options", "connect", "patch":
await callback(request)
else:
request.respond(Http400, "Invalid request method. Got: " & reqMethod)