Implemented buffering for asynchronous sockets.
This commit is contained in:
parent
ed0736d73d
commit
3612aca5fe
3 changed files with 38 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue