Interface Http


public interface Http
  • Method Details

    • registerHttpRequestInterceptor

      void registerHttpRequestInterceptor(String host, IHttpRequestInterceptor httpRequestInterceptor)
      Register an interceptor for an HTTP request directed to a specified target host.
      Parameters:
      host - the host. It can contain wildcard (e.g. *.mendix.com)
      httpRequestInterceptor - the interceptor to capture the HTTP request before it is sent to the server.
    • executeHttpRequest

      HttpResponse executeHttpRequest(URI uri, HttpMethod method, HttpHeader[] headers, InputStream content)
      Executes an HTTP request. Consumers should call HttpResponse.close() when the content of the response has been consumed.
      Parameters:
      uri - the uri to contact.
      method - the HTTP method.
      headers - the headers of the request.
      content - the content of the request, or null when there is no content. For methods GET and DELETE this value is ignored.
      Returns:
      the resulting response.