String was created by utilizing the toString method on the buffer.
Here is a sample of the resulting string:
GET / HTTP/1.1
Host: localhost:8080
Connection: keep-alive
Cache-Control: max-age=0
....
Is there a way to parse this string whenever a space (" ") or a new line is encountered?
Appreciate any help with this task!