Skip to content

Instantly share code, notes, and snippets.

@tarynsauer
Created March 11, 2014 03:25
Show Gist options
  • Select an option

  • Save tarynsauer/9478929 to your computer and use it in GitHub Desktop.

Select an option

Save tarynsauer/9478929 to your computer and use it in GitHub Desktop.
public String parseRequest() throws IOException {
String line = "";
StringBuilder stringBuilder = new StringBuilder();
while(clientRequest.ready()) {
stringBuilder.append((char) clientRequest.read());
}
return stringBuilder.toString();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment