Class HttpClientRequest

java.lang.Object
org.mule.weave.v2.module.http.service.HttpClientRequest

public class HttpClientRequest extends Object
Representation of an HTTP request. Instances can only be obtained through an HttpClientRequest.Builder.
  • Method Details

    • getUrl

      public String getUrl()
      Returns:
      the request URL.
    • getMethod

      public String getMethod()
      Returns:
      the request HTTP method.
    • getHeaders

      public HttpClientHeaders getHeaders()
      Returns:
      the all the HTTP headers.
    • getQueryParams

      public HttpClientQueryParams getQueryParams()
      Returns:
      the HttpClientQueryParams.
    • getBody

      public InputStream getBody()
      Returns:
      the request's body InputStream.
    • isFollowRedirects

      public boolean isFollowRedirects()
      Returns:
      if this request is to follow redirects.
    • getReadTimeout

      public int getReadTimeout()
      Returns:
      the read timeout.
    • getRequestTimeout

      public int getRequestTimeout()
      Returns:
      the request timeout.
    • isStreamResponse

      public boolean isStreamResponse()
      Returns:
      if this request is to stream response.
    • isEnableMetrics

      public boolean isEnableMetrics()
      Returns:
      if this request has metrics enabled.