Uses of Class
io.karatelabs.driver.InterceptResponse
Packages that use InterceptResponse
-
Uses of InterceptResponse in io.karatelabs.driver
Methods in io.karatelabs.driver that return InterceptResponseModifier and TypeMethodDescriptionInterceptHandler.handle(InterceptRequest request) Handle an intercepted request.Add a header to this response.static InterceptResponseCreate an HTML response.static InterceptResponseCreate an HTML response with 200 OK status.static InterceptResponseCreate a JSON response.static InterceptResponseCreate a JSON response with 200 OK status.static InterceptResponseInterceptResponse.notFound()Create a 404 Not Found response.static InterceptResponseInterceptResponse.of(int status, byte[] body) Create a response with the given status and body.static InterceptResponseCreate a response with the given status and string body.static InterceptResponseCreate a response with the given status, headers, and body.static InterceptResponseInterceptResponse.ok()Create a 200 OK response.static InterceptResponseCreate a redirect response.static InterceptResponseInterceptResponse.serverError()Create a 500 Internal Server Error response.static InterceptResponseInterceptResponse.status(int status) Create an empty response with just a status code.static InterceptResponseCreate a text response.static InterceptResponseCreate a text response with 200 OK status.