Interface IReadOnlyResponseStore
Interface to abstract retrieval of HttpResponseMessage instances
Namespace: FakeHttp
Assembly: FakeHttp.dll
Syntax
public interface IReadOnlyResponseStore
Methods
| Improve this Doc View SourceFindResponse(HttpRequestMessage)
Find a response in the store
Declaration
HttpResponseMessage FindResponse(HttpRequestMessage request)
Parameters
Type | Name | Description |
---|---|---|
HttpRequestMessage | request | A HttpRequestMessage that describes the desired response |
Returns
Type | Description |
---|---|
HttpResponseMessage | A HttpResponseMessage. Will return a 404 message if no response is found |
ResponseExists(HttpRequestMessage)
Determines if a HttpResponseMessage exists for the HttpRequestMessage
Declaration
bool ResponseExists(HttpRequestMessage request)
Parameters
Type | Name | Description |
---|---|---|
HttpRequestMessage | request |
Returns
Type | Description |
---|---|
Boolean | True if a response exists for the request. Otherwise false |