Skip to content

Instantly share code, notes, and snippets.

@tailhook
Last active November 5, 2015 00:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tailhook/1bfaf54b556d43018bdd to your computer and use it in GitHub Desktop.
Save tailhook/1bfaf54b556d43018bdd to your computer and use it in GitHub Desktop.
loop {
let mut buf = new_buffer();
try!(read_request(&mut buf));
let parsed = try!(parse_request(&buf));
let value = try!(process_request(&parsed));
try!(send_response(&value));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment