Skip to content

Instantly share code, notes, and snippets.

@paraboul
Created November 12, 2009 11:15
Show Gist options
  • Save paraboul/232825 to your computer and use it in GitHub Desktop.
Save paraboul/232825 to your computer and use it in GitHub Desktop.
switch(*(int *)data) {
case 542393671: /* GET + space */
http->type = HTTP_GET;
break;
case 1414745936: /* POST */
http->type = HTTP_POST;
break;
default:
http->error = 1;
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment