net.noderunner.http
Class ServerRequest
java.lang.Object
net.noderunner.http.Request
net.noderunner.http.ServerRequest
public class ServerRequest
- extends Request
Specifies an HTTP request.
In RFC 2616 terms, this object represents data found in the
Request
body.
ServerRequest
public ServerRequest(InputStream is)
throws IOException
- Constructs a
ServerRequest
by parsing an input stream.
- Throws:
IOException
getInputStream
public InputStream getInputStream()
readFully
public int readFully()
throws IOException
- Reads a response's input stream until EOF.
Returns the number of bytes read.
If the server indicates the connection was closed, does nothing.
- Throws:
IOException
toString
public String toString()
- Returns a debug string.
- Overrides:
toString
in class Request
Copyright © 2011. All Rights Reserved.