@ThreadSafe
public interface HttpResponse
This bean contains properties of HTTP response. An implementation of
HttpSpy uses it when sending a response on an incoming request.
Concurrency notes. User creates an instance of this class when setting expectations before the actual test has started. During the test, another thread reads data from the expectation object, and the testing thread is not expected to modify the object. The class should be thread safe.
| Modifier and Type | Method and Description |
|---|---|
String |
getBody()
Gets body.
|
long |
getDelayMillis()
Gets delay in milliseconds before sending the response.
|
Map<String,List<String>> |
getHeaders()
Gets headers.
|
int |
getStatusCode()
Gets status code.
|
int getStatusCode()
String getBody()
Map<String,List<String>> getHeaders()
long getDelayMillis()
Copyright © 2016. All rights reserved.