Class TestRequest

java.lang.Object
io.mangoo.test.http.TestRequest

public final class TestRequest extends Object
Author:
svenkubiak
  • Method Details

    • create

      public static TestResponse create(String uri, String method)
    • get

      public static TestResponse get(String uri)
      Creates a new HTTP GET request to the given URI
      Parameters:
      uri - The URI to call
      Returns:
      A MangooResponse
    • post

      public static TestResponse post(String uri)
      Creates a new HTTP POST request to the given URI
      Parameters:
      uri - The URI to call
      Returns:
      A MangooResponse
    • put

      public static TestResponse put(String uri)
      Creates a new HTTP PUT request to the given URI
      Parameters:
      uri - The URI to call
      Returns:
      A MangooResponse
    • delete

      public static TestResponse delete(String uri)
      Creates a new HTTP DELETE request to the given URI
      Parameters:
      uri - The URI to call
      Returns:
      A MangooResponse
    • head

      public static TestResponse head(String uri)
      Creates a new HTTP HEAD request to the given URI
      Parameters:
      uri - The URI to call
      Returns:
      A MangooResponse
    • patch

      public static TestResponse patch(String uri)
      Creates a new HTTP PACTH request to the given URI
      Parameters:
      uri - The URI to call
      Returns:
      A MangooResponse
    • options

      public static TestResponse options(String uri)
      Creates a new HTTP OPTIONS request to the given URI
      Parameters:
      uri - The URI to call
      Returns:
      A MangooResponse