new HttpResponse(urlToIntercept)
Creates a HTTP Response that will be used to mock out network interceptions.
Parameters:
Name | Type | Description |
---|---|---|
urlToIntercept | * |
Members
body
Sets the value of the body of the HTTP Request that will be returned.
method
Sets the method of the HTTP Request
method
Returns the Method to be used in the intercept
status
Set the STATUS value of the returned HTTP Request
Methods
addHeaders(header, value)
Add headers that will be returned when we intercept a HTTP Request
Parameters:
Name | Type | Description |
---|---|---|
header | * | |
value | * |