public class HttpRequestOptionsBuilder extends AbstractBaseOptionsBuilder<HttpRequestOptionsBuilder,HttpRequestOptions>
HttpRequestOptions
Modifier and Type | Method and Description |
---|---|
HttpRequestOptions |
build() |
HttpRequestOptionsBuilder |
disableFollowsRedirect()
Configures the requester to not follow redirects
|
HttpRequestOptionsBuilder |
disableParseResponse() |
HttpRequestOptionsBuilder |
disableStatusCodeValidation()
Disables the status code validation for the response
|
HttpRequestOptionsBuilder |
enableFollowsRedirect()
Configures the requester to follows redirects
|
HttpRequestOptionsBuilder |
method(String method) |
static HttpRequestOptionsBuilder |
newOptions() |
HttpRequestOptionsBuilder |
requestConfig(HttpRequesterConfig requestConfig) |
HttpRequestOptionsBuilder |
requestStreamingMode(HttpStreamingType mode)
Configures the streaming mode for sending the HTTP request.
|
HttpRequestOptionsBuilder |
tlsContextFactory(TlsContextFactory tlsContextFactory) |
getResponseTimeout, responseTimeout
public HttpRequestOptionsBuilder method(String method)
method
- HTTP method for the HTTP requestpublic HttpRequestOptionsBuilder enableFollowsRedirect()
public HttpRequestOptionsBuilder disableFollowsRedirect()
public HttpRequestOptionsBuilder requestStreamingMode(HttpStreamingType mode)
public HttpRequestOptionsBuilder requestConfig(HttpRequesterConfig requestConfig)
requestConfig
- the config to use for the requesterpublic HttpRequestOptionsBuilder disableStatusCodeValidation()
public HttpRequestOptionsBuilder disableParseResponse()
public HttpRequestOptionsBuilder tlsContextFactory(TlsContextFactory tlsContextFactory)
public HttpRequestOptions build()
build
in class AbstractBaseOptionsBuilder<HttpRequestOptionsBuilder,HttpRequestOptions>
HttpRequestOptions
instancepublic static HttpRequestOptionsBuilder newOptions()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.