public class HTTPRequest extends Object
Modifier and Type | Method and Description |
---|---|
String |
content()
Get the message body content.
|
String |
header(String name)
Get the value of a request header field.
|
boolean |
isNonPersistent()
Test if this is a non-persistent connection.
|
String |
method()
Get the request method (GET, PUT, etc.).
|
String |
toString()
Obtain a printable String representation of this request.
|
String |
URI()
Get the URI that was requested.
|
public String content()
public String header(String name)
name
- The header name whose value is desired.public boolean isNonPersistent()
public String method()
public String toString()
public String URI()
Copyright © 2017. All rights reserved.