Skip to content

Instantly share code, notes, and snippets.

@tailhook
Last active November 5, 2015 00:04
Show Gist options
  • Select an option

  • Save tailhook/1bfaf54b556d43018bdd to your computer and use it in GitHub Desktop.

Select an option

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