public interface IHttpRequest
| Modifier and Type | Method and Description |
|---|---|
void |
addHeader(String theName,
String theValue)
Add a header to the request
|
IHttpResponse |
execute()
Execute the request
|
Map<String,List<String>> |
getAllHeaders() |
String |
getHttpVerbName()
Return the HTTP verb (e.g.
|
String |
getRequestBodyFromStream()
Return the request body as a string.
|
String |
getUri()
Return the request URI, or null
|
void |
removeHeaders(String theHeaderName)
Remove any headers matching the given name
|
void addHeader(String theName, String theValue)
theName - the header nametheValue - the header valueIHttpResponse execute() throws IOException
IOExceptionMap<String,List<String>> getAllHeaders()
String getRequestBodyFromStream() throws IOException
IOExceptionString getHttpVerbName()
void removeHeaders(String theHeaderName)
theHeaderName - The header name, e.g. "Accept" (must not be null or blank)Copyright © 2014–2019 University Health Network. All rights reserved.