Uses of Class
io.mangoo.test.http.TestResponse
Packages that use TestResponse
-
Uses of TestResponse in io.mangoo.test.http
Subclasses of TestResponse in io.mangoo.test.httpMethods in io.mangoo.test.http that return TestResponseModifier and TypeMethodDescriptionstatic TestResponsestatic TestResponseCreates a new HTTP DELETE request to the given URITestResponse.execute()Executes the HTTP requeststatic TestResponseCreates a new HTTP GET request to the given URIstatic TestResponseCreates a new HTTP HEAD request to the given URIstatic TestResponseCreates a new HTTP OPTIONS request to the given URIstatic TestResponseCreates a new HTTP PACTH request to the given URIstatic TestResponseCreates a new HTTP POST request to the given URIstatic TestResponseCreates a new HTTP PUT request to the given URISets the URI to be executed by the requestTestResponse.withBasicAuthentication(String username, String password) Sets Basic HTTP Authentication the requestTestResponse.withContentType(String contentType) Sets the ContentType of the requestTestResponse.withCookie(HttpCookie cookie) Adds an additional cookie to the requestTestResponse.withDisabledRedirects()Disables redirects when the request is executed by setting followReditects to HttpClient.Redirect.NEVER Default is HttpClient.Redirect.ALWAYSSimulates a FORM post by setting: Content-Type to application/x-www-form-urlencoded HTTP method to POST URLEncoding of the given parametersTestResponse.withHeader(String name, String value) Adds an additional header to the requestTestResponse.withHTTPMethod(String method) Sets the HTTP method to execute the request withTestResponse.withStringBody(String body) Sets a String body to the requestTestResponse.withTimeout(long amount, TemporalUnit unit) Sets the timeout of the HTTP request Default is 2 seconds