@ThreadSafe
public interface HttpRequest
This bean contains properties of HTTP request. An implementation of
HttpSpy uses it to record actual requests and to verify against
request expectations.
Concurrency notes.An instance of this class is written in the thread that performs actual testing. Another thread reads the instance during verification. The class should be thread safe.
| Modifier and Type | Method and Description |
|---|---|
String |
getBody()
Gets body.
|
Map<String,List<String>> |
getHeaders()
Gets headers.
|
List<String> |
getHeaderValues(String name)
Gets all values of specified header.
|
String |
getMethod()
Gets HTTP method.
|
String |
getPath()
Gets HTTP path.
|
String getMethod()
String getPath()
String getBody()
Map<String,List<String>> getHeaders()
Copyright © 2016. All rights reserved.