Contact Us 1-800-596-4880

HTTP Connector 1.11 Reference

Use Anypoint Connector for HTTP (HTTP Connector) to handle and perform HTTP requests. This class only serves as an extension definition. This connector’s configurations are divided between a server (<http:listener-config>) and a client (<http:requester-config>). capabilities.

Configurations


Listener Configuration

Configuration element for a HttpListener.

Parameters

Name Type Description Default Value Required

Name

String

Name for this configuration. Connectors reference the configuration with this name.

x

Connection

The connection types that can be provided to this configuration.

x

Base Path

String

Base path to use for all requests that reference this config.

Listener Interceptors

Listener interceptors that will apply on request and on response events.

Reject Invalid Transfer Encoding

Boolean

If true, request with an invalid value for Transfer-Encoding header are rejected with a 400 Bad Request message.

false

Connection Types

Listener

Connection provider for a HttpListener, handles the creation of HttpServer instances.

Parameters
Name Type Description Default Value Required

TLS Configuration

TLS

Reference to a TLS configuration element. This enables HTTPS for this configuration.

Protocol

Enumeration, one of:

  • HTTP

  • HTTPS

Protocol to use for communication. Default value is HTTP. When using HTTPS the HTTP communication is secured using TLS / SSL. If HTTPS is configured as protocol then configure at least the keystore in the tls:context child element of this listener-config.

HTTP

Host

String

Host where the requests is sent.

x

Port

Number

Port where the requests is received.

x

Use Persistent Connections

Boolean

Indicates whether to use persistent connections:

  • true

Mule uses persistent connections.

  • false

Mule closes the connection after the first request completes.

true

Connection Idle Timeout

Number

The number of milliseconds that a connection can remain idle before it’s closed. The value of this attribute is only used when persistent connections are enabled. The listener default timeout is bigger than our requester default timeout to avoid 'Remotely closed' exception when you start sending a request on an existing connection just before the timeout occurs.

40000

Read Timeout

Number

Read timeout to configure in milliseconds.

30000

Reconnection

When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.

Http1 Support

Specific parameters for HTTP/1.

Http2 Support

Specific parameters for HTTP/2.

Associated Sources


Request Configuration

Configuration element for a HTTP requests.

Parameters

Name Type Description Default Value Required

Name

String

The name for this configuration. Connectors reference the configuration with this name.

x

Connection

The connection types that can be provided to this configuration.

x

Expiration Policy

Configures the minimum amount of time that a dynamic configuration instance can remain idle before Mule considers it eligible for expiration.

Base Path

String

Base path to use for all requests that reference this config.

/

Follow Redirects

Boolean

Specifies whether to follow redirects or not. Default value is true.

true

Send Body Mode

Enumeration, one of:

  • ALWAYS

  • AUTO

  • NEVER

Defines if the request contains a body or not. If AUTO, it depends on the method (GET, HEAD and OPTIONS aren’t send a body).

AUTO

Request Streaming Mode

Enumeration, one of:

  • AUTO

  • ALWAYS

  • NEVER

Defines if the request is sent using streaming or not. If this attribute isn’t present, the behavior depends on the type of the payload (it streams only for InputStream). If set to true, it always streams. If set to false, it never streams. As streaming is done the request is sent user Transfer-Encoding: chunked.

AUTO

Enable Cookies

Boolean

If true, cookies received in HTTP responses will be stored, and sent in subsequent HTTP requests.

true

Default Headers

Array of Default Header

Default HTTP headers the message includes.

Query Parameters

Array of Query Parameter

Default Query parameters the request includes.

Send Correlation Id

Enumeration, one of:

  • AUTO

  • ALWAYS

  • NEVER

Whether to specify a correlationId when publishing messages. This applies both for custom correlation IDs specifies at the operation level and for default correlation IDs taken from the current event.

AUTO

Preserve Headers Case

Boolean

By default, header keys are stored internally in lower-case. This is to improve performance of headers handling and is functionally correct as specified in the RFC. If a server expects headers in a specific case, this flag can be set to true so the case of the header keys are preserved.

false

Response Timeout

Number

Maximum time that the request element blocks the execution of the flow waiting for the HTTP response. If this value isn’t present, the default response timeout from the Mule configuration is used.

Response Validator

Configures a default error handling of the response.

Connection Types

Request

Connection provider for a HTTP request, handles the creation of HttpExtensionClient instances.

Parameters
Name Type Description Default Value Required

Proxy Config

One of:

Configures a proxy for outbound connections. A proxy element must define a host name and a port attributes, and optionally can define a username and a password.

Authentication

Authentication method to use for the HTTP request.

Connectivity Test

TLS Configuration

TLS

Reference to a TLS configuration element. This enables HTTPS for this configuration.

Protocol

Enumeration, one of:

  • HTTP

  • HTTPS

Protocol to use for communication. Default value is HTTP. When using HTTPS the HTTP communication is secured using TLS / SSL. If HTTPS was configured as protocol then customize the TLS/SSL configuration by defining the tls:context child element of this listener-config. If not tls:context is defined then the default JVM certificates are used to establish communication.

HTTP

Host

String

Host where the requests is sent.

Port

Number

Port where the requests is sent. If the protocol attribute is HTTP (default) then the default value is 80, if the protocol attribute is HTTPS then the default value is 443.

Use Persistent Connections

Boolean

Indicates whether to use persistent connections:

  • true

Mule uses persistent connections.

  • false

Mule closes the connection after the first request completes.

true

Max Connections

Number

Maximum number of connections to open to the backend. HTTP requests are sent in parallel over multiple connections. Setting this value too high can impact latency and consume additional resources without increasing throughput. By default the number of connections is unlimited.

-1

Connection Idle Timeout

Number

The number of milliseconds that a connection can remain idle before it’s closed. The value of this attribute is only used when persistent connections are enabled.

30000

Stream Response

Boolean

If this value is true, Mule streams received responses, meaning processing continues as soon as all headers are parsed and the body streamed as it arrives. When enabled, the response must be eventually read since depending on the configured buffer size it may not fit into memory and processing stops until space is available.

false

Response Buffer Size

Number

Size of the buffer that stores the HTTP response, in bytes.

-1

Client Socket Properties

Reconnection

When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.

Http1 Support

Specific parameters for HTTP/1.

Http2 Support

Specific parameters for HTTP/2.

Supported Operations

Associated Sources

Operations

Request

<http:request>

Consumes an HTTP service.

Parameters

Name Type Description Default Value Required

Configuration

String

Name of the configuration to use.

x

Method

String

The HTTP method for the request.

GET

Output Mime Type

String

The mime type of the payload that this operation outputs.

Output Encoding

String

The encoding of the payload that this operation outputs.

Streaming Strategy

Configures how Mule processes streams. Repeatable streams are the default behavior.

Path

String

Path where the request is sent.

URL

String

URL where to send the request.

Follow Redirects

Boolean

Specifies whether to follow redirects or not.

Send Body Mode

Enumeration, one of:

  • ALWAYS

  • AUTO

  • NEVER

Defines if the request contains a body or not.

Request Streaming Mode

Enumeration, one of:

  • AUTO

  • ALWAYS

  • NEVER

Defines if the request is sent using streaming or not.

Response Timeout

Number

Maximum time that the request element blocks the execution of the flow waiting for the HTTP response.

Body

Any

The body of the response message

#[payload]

Headers

Object

HTTP headers the message includes.

URI Parameters

Object

URI parameters that can be used to create the request.

Query Parameters

Object

Query parameters the request includes.

Send Correlation Id

Enumeration, one of:

  • AUTO

  • ALWAYS

  • NEVER

Options on whether to include an outbound correlation ID or not

Correlation Id

String

Allows to set a custom correlation ID

Response Validator

Configures error handling of the response.

Target Variable

String

The name of a variable on which the operation’s output is placed

Target Value

String

An expression to evaluate against the operation’s output and store the expression outcome in the target variable

#[payload]

Reconnection Strategy

Retry strategy in case of connectivity errors.

Output

Type

Any

Attributes Type

For Configurations

Throws

  • HTTP:GATEWAY_TIMEOUT

  • HTTP:UNSUPPORTED_MEDIA_TYPE

  • HTTP:CONNECTIVITY

  • HTTP:INTERNAL_SERVER_ERROR

  • HTTP:METHOD_NOT_ALLOWED

  • HTTP:MULTIPLE_CHOICES

  • HTTP:SEE_OTHER

  • HTTP:NOT_ACCEPTABLE

  • HTTP:MOVED_TEMPORARILY

  • HTTP:TOO_MANY_REQUESTS

  • HTTP:SERVICE_UNAVAILABLE

  • HTTP:FORBIDDEN

  • HTTP:CLIENT_SECURITY

  • HTTP:UNAUTHORIZED

  • HTTP:BAD_GATEWAY

  • HTTP:MOVED_PERMANENTLY

  • HTTP:RETRY_EXHAUSTED

  • HTTP:NOT_FOUND

  • HTTP:NOT_MODIFIED

  • HTTP:BAD_REQUEST

  • HTTP:PARSING

  • HTTP:TIMEOUT

  • HTTP:SECURITY

Basic Security Filter

<http:basic-security-filter>

Authenticates received HTTP requests. Use it always after a listener component.

Parameters

Name Type Description Default Value Required

Realm

String

Authentication realm.

x

Security Providers

Array of String

The delegate-security-provider to use for authenticating. Use this in case you have multiple security managers defined in your configuration.

Attributes

The HttpRequestAttributes coming from an HTTP listener source to check the Authorization header.

#[attributes]

Throws

  • HTTP:BASIC_AUTHENTICATION

  • MULE:SERVER_SECURITY

Load Static Resource

<http:load-static-resource>

The static resource serves static content to use with HTTP. The request path is used to look up the resource.

Parameters

Name Type Description Default Value Required

Resource Base Path

String

The resource base from where documents are served up. For example: /Users/maxthemule/resources. Validate inputs when using expressions here to avoid overexposing files.

x

Default File

String

The default file to serve when a directory is specified. The default value is 'index.html'. Validate inputs when using expressions here to avoid overexposing files.

index.html

Attributes

The HttpRequestAttributes coming from an HTTP listener source to check the required resources.

#[attributes]

Target Variable

String

The name of a variable on which the operation’s output is placed

Target Value

String

An expression to evaluate against the operation’s output and store the expression outcome in the target variable

#[payload]

Output

Type

Any

Attributes Type

Any

Throws

  • HTTP:NOT_FOUND

Sources

Listener

<http:listener>

Represents a listener for HTTP requests.

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

Path

String

Relative path from the path set in the HTTP Listener configuration

x

Allowed Methods

String

Comma-separated list of allowed HTTP methods by this listener. To allow all methods don’t define the attribute.

Response Streaming Mode

Enumeration, one of:

  • AUTO

  • ALWAYS

  • NEVER

Defines if the response is sent using streaming or not. If this attribute isn’t present, the behavior depends on the type of the payload (it streams only for InputStream). If set to true, it always streams. If set to false, it never streams. As streaming is done the response is sent user Transfer-Encoding: chunked.

AUTO

Deferred Response

Boolean

Defines if the response is sent in the same thread where the listener’s callback is notified, or scheduled to another Scheduler. This is useful when the payload to send is generated slowly.

false

Output Mime Type

String

The mime type of the payload that this operation outputs.

Output Encoding

String

The encoding of the payload that this operation outputs.

Primary Node Only

Boolean

Determines whether to execute this source on only the primary node when running Mule instances in a cluster.

Streaming Strategy

Configures how Mule processes streams. Repeatable streams are the default behavior.

Redelivery Policy

Defines a policy for processing the redelivery of the same message.

Reconnection Strategy

Retry strategy in case of connectivity errors.

Body

Any

The body of the response message.

#[payload]

Headers

Object

HTTP headers the message includes.

Status Code

Number

HTTP status code the response has.

Reason Phrase

String

HTTP reason phrase the response has.

Output

Type

Any

Attributes Type

For Configurations

Polling Source

<http:polling-source> Event source that executes a scheduled HTTP request to a given HTTP server.

Parameters

Name Type Description Default Value Required

Configuration

String

Name of the configuration to use.

x

Path

String

Relative path from the path set in the HTTP Requester configuration

Method

String

GET

Response Validator

Validation applied to the connectivity test response.

Output Mime Type

String

The mime type of the payload that this operation outputs.

Primary Node Only

Boolean

Determines whether to execute this source on only the primary node when running Mule instances in a cluster.

On Capacity Overload

Enumeration, one of:

  • DROP

  • WAIT

  • FAIL

Strategy that Mule applies when the flow receives more messages than it has the capacity to manage.

WAIT

Scheduling Strategy

scheduling-strategy

Configures the scheduler that triggers the polling.

x

Streaming Strategy

Configures how Mule processes streams. Repeatable streams are the default behavior.

Redelivery Policy

Defines a policy for processing the redelivery of the same message.

Body

String

The body of the response message

Headers

HTTP headers the message includes.

URI Parameters

URI parameters that can be used to create the request.

Query Parameters

Query parameters the request includes.

Split Expression

String

The split expression to apply to the response.

Watermark Expression

String

The expression to retrieve the watermark from the (split) response.

Id Expression

String

The expression to retrieve the ID from every (split) item.

Reconnection Strategy

Retry strategy in case of connectivity errors.

Output

Type

Any

Attributes Type

For Configurations

Types

TLS

Configures TLS to provide secure communications for the Mule app.

Field Type Description Default Value Required

Enabled Protocols

String

A comma separated list of protocols enabled for this context.

Enabled Cipher Suites

String

A comma separated list of cipher suites enabled for this context.

Trust Store

Configures the TLS truststore.

Key Store

Configures the TLS keystore.

Revocation Check

Truststore

Configures the truststore for TLS.

Field Type Description Default Value Required

Path

String

Path to the truststore. Mule resolves the path relative to the current classpath and file system.

Password

String

Password used to protect the truststore.

Type

String

Type of store.

Algorithm

String

Encryption algorithm that the truststore uses.

Insecure

Boolean

If true, Mule stops performing certificate validations. Setting this to true can make connections vulnerable to attacks.

Keystore

Configures the keystore for the TLS protocol. The keystore you generate contains a private key and a public certificate.

Field Type Description Default Value Required

Path

String

The path to the keystore. Mule resolves the path relative to the current classpath and file system.

Type

String

The type of store.

Alias

String

The alias of the key to use when the keystore contains multiple private keys. By default, Mule uses the first key in the file.

Key Password

String

The password used to protect the private key.

Password

String

The password used to protect the keystore.

Algorithm

String

The encryption algorithm that the keystore uses.

Standard Revocation Check

Configures standard revocation checks for TLS certificates.

Field Type Description Default Value Required

Only End Entities

Boolean

Which elements to verify in the certificate chain:

  • true

Verify only the last element in the certificate chain.

  • false

Verify all elements in the certificate chain.

Prefer Crls

Boolean

How to check certificate validity:

  • true

Check the Certification Revocation List (CRL) for certificate validity.

  • false

Use the Online Certificate Status Protocol (OCSP) to check certificate validity.

No Fallback

Boolean

Whether to use the secondary method to check certificate validity:

  • true

Use the method that wasn’t specified in the Prefer Crls field (the secondary method) to check certificate validity.

  • false

Don’t use the secondary method to check certificate validity.

Soft Fail

Boolean

What to do if the revocation server can’t be reached or is busy:

  • true

Avoid verification failure.

  • false

Allow the verification to fail.

Custom OCSP Responder

Configures a custom OCSP responder for certification revocation checks.

Field Type Description Default Value Required

Url

String

The URL of the OCSP responder.

Cert Alias

String

The alias of the signing certificate for the OCSP response. If specified, the alias must be in the truststore.

CRL File

Specifies the location of the certification revocation list (CRL) file.

Field Type Description Default Value Required

Path

String

The path to the CRL file.

Reconnection

Configures a reconnection strategy for an operation.

Field Type Description Default Value Required

Fails Deployment

Boolean

When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.

Reconnection Strategy

The reconnection strategy to use.

Reconnect

Configures a standard reconnection strategy, which specifies how often to reconnect and how many reconnection attempts the connector source or operation can make.

Field Type Description Default Value Required

Frequency

Number

Frequency of reconnection attempts, in milliseconds.

Count

Number

How many reconnection attempts the Mule app can make.

Reconnect Forever

Configures a forever reconnection strategy by which the connector source or operation attempts to reconnect at a specified frequency for as long as the Mule app runs.

Field Type Description Default Value Required

Frequency

Number

Frequency of reconnection attempts, in milliseconds.

Http1 Support Configuration

Field Type Description Default Value Required

Enable

Boolean

Enables or disables HTTP/1.

true

Http2 Support Configuration

Field Type Description Default Value Required

Enable

Boolean

Enables or disables HTTP/2.

true

Header Table Size

Number

Allows the sender to inform the remote endpoint of the maximum size of the header compression table used to decode header blocks, in octets. The encoder can select any size equal to or less than this value by using signaling specific to the header compression format inside a header block. The initial value is 4,096 octets.

See https://datatracker.ietf.org/doc/html/rfc7540#section-6.5.2[SETTINGS_HEADER_TABLE_SIZE (0x1)]

4096

Max Concurrent Streams

Number

Indicates the maximum number of concurrent streams that the sender allows. This limit is directional: it applies to the number of streams that the sender permits the receiver to create. Initially, there is no limit to this value. Set this value to 100 or higher to avoid reducing parallelism. Don’t treat a value of 0 for SETTINGS_MAX_CONCURRENT_STREAMS as special by endpoints. A zero value does prevent the creation of new streams; however, this can also happen for any limit that is exhausted with active streams. Servers set a zero value only for short durations. If a server doesn’t want to accept requests, closing the connection is more appropriate.

See https://datatracker.ietf.org/doc/html/rfc7540#section-6.5.2[SETTINGS_MAX_CONCURRENT_STREAMS (0x3)]

Initial Window Size

Number

Indicates the sender’s initial window size (in octets) for stream-level flow control. The initial value is 2^16-1 (65,535) octets.

See https://datatracker.ietf.org/doc/html/rfc7540#section-6.5.2[SETTINGS_INITIAL_WINDOW_SIZE (0x4)]

65535

Max Frame Size

Number

Indicates the size of the largest frame payload that the sender is willing to receive, in octets. The initial value is 2^14 (16,384) octets. The value advertised by an endpoint must be between this initial value and the maximum allowed frame size (2^24-1 or 16,777,215 octets), inclusive.

See https://datatracker.ietf.org/doc/html/rfc7540#section-6.5.2[SETTINGS_MAX_FRAME_SIZE (0x5)]

16384

Max Header List Size

Number

This advisory setting informs a peer of the maximum size of header list that the sender is prepared to accept, in octets. The value is based on the uncompressed size of header fields, including the length of the name and value in octets plus an overhead of 32 octets for each header field. For any given request, a lower limit than what is advertised can be enforced. The initial value of this setting is unlimited.

See https://datatracker.ietf.org/doc/html/rfc7540#section-6.5.2"[SETTINGS_MAX_HEADER_LIST_SIZE (0x6)]

8192

CORS Interceptor Wrapper

Field Type Description Default Value Required

Cors Interceptor

Interceptor which validates that requests match CORS specification and acts on responses accordingly.

x

CORS Listener Interceptor

Field Type Description Default Value Required

Allow Credentials

Boolean

false

Origins

Array of One of:

x

HTTP Request Attributes

Field Type Description Default Value Required

Listener Path

String

Full path where the request was received. Former http.listener.path.

x

Raw Request Path

String

Full path requested, encoded as received.

@since 1.5.0

x

Relative Path

String

Path where the request was received, without considering the base path. Former http.relative.path.

x

Masked Request Path

String

Path computed from masking the listenerPath and taking the difference. This is only calculated when the listenerPath isn’t null.

@since 1.4.0

x

Version

String

HTTP version of the request. Former http.version.

x

Scheme

String

HTTP scheme of the request. Former http.scheme.

x

Method

String

HTTP method of the request. Former http.method.

x

Request Uri

String

Full URI of the request. Former http.request.uri.

x

Raw Request Uri

String

Full URI of the request, encoded as received.

@since 1.5.0

x

Query String

String

Query string of the request. Former http.query.string.

x

Local Address

String

Local host address from the server.

x

Remote Address

String

Remote host address from the sender. Former http.remote.address.

x

Client Certificate

Client certificate (if 2 way TLS is enabled). Former http.client.cert.

Query Params

Object

Query parameters map built from the parsed string. Former http.query.params.

x

Uri Params

Object

URI parameters extracted from the request path. Former http.uri.params.

x

Request Path

String

Full path requested. Former http.request.path.

x

Headers

Object

Map of HTTP headers in the message. Former properties.

x

Certificate Data

Field Type Description Default Value Required

Basic Constraints

Number

Critical Extension OI Ds

Array of String

Encoded

Binary

Extended Key Usage

Array of String

Extensions

Issuer Alternative Names

Issuer DN

Issuer Unique ID

Array of Boolean

Issuer X500 Principal

Key Usage

Array of Boolean

Name

String

Non Critical Extension OI Ds

Array of String

Not After

Date

Not Before

Date

Public Key

Serial Number

Number

Serial Number Object

Sig Alg Name

String

Sig Alg OID

String

Sig Alg Params

Binary

Signature

Binary

Subject Alternative Names

Subject DN

Subject X500 Principal

Type

String

Version

Number

Certificate Extension

Field Type Description Default Value Required

Criticality

Boolean

Oid

String

Value

Binary

Alternative Name Data

Field Type Description Default Value Required

Name

String

Type

Number

Principal Data

Field Type Description Default Value Required

Common Name

String

Name

String

X500 Principal Data

Field Type Description Default Value Required

Name

String

Public Key Data

Field Type Description Default Value Required

Algorithm

String

Encoded

Binary

Modulus

Number

Params

Number

Public Key

String

Serial Number Data

Field Type Description Default Value Required

Serial Number

Number

Repeatable In Memory Stream

Configures the in-memory streaming strategy by which the request fails if the data exceeds the maximum buffer size. Always run performance tests to find the optimal buffer size for your specific use case.

Field Type Description Default Value Required

Initial Buffer Size

Number

Initial amount of memory to allocate to the data stream. If the streamed data exceeds this value, the buffer expands by Buffer Size Increment, with an upper limit of Max In Memory Size value.

Buffer Size Increment

Number

This is by how much the buffer size expands if it exceeds its initial size. Setting a value of zero or lower means that the buffer doesn’t expand, meaning that a STREAM_MAXIMUM_SIZE_EXCEEDED error is raised when the buffer gets full.

Max Buffer Size

Number

Maximum size of the buffer. If the buffer size exceeds this value, Mule raises a STREAM_MAXIMUM_SIZE_EXCEEDED error. A value of less than or equal to 0 means no limit.

Buffer Unit

Enumeration, one of:

  • BYTE

  • KB

  • MB

  • GB

Unit for the Initial Buffer Size, Buffer Size Increment, and Buffer Unit fields.

Repeatable File Store Stream

Configures the repeatable file-store streaming strategy by which Mule keeps a portion of the stream content in memory. If the stream content is larger than the configured buffer size, Mule backs up the buffer’s content to disk and then clears the memory.

Field Type Description Default Value Required

In Memory Size

Number

Maximum amount of memory that the stream uses for data. If the amount of memory exceeds this value, Mule buffers the content to disk. To optimize performance:

  • Configure a larger buffer size to avoid the number of times Mule needs to write the buffer on disk. This increases performance, but it also limits the number of concurrent requests your application can process, because it requires additional memory.

  • Configure a smaller buffer size to decrease memory load at the expense of response time.

Buffer Unit

Enumeration, one of:

  • BYTE

  • KB

  • MB

  • GB

Unit for the In Memory Size field.

Redelivery Policy

Configures the redelivery policy for executing requests that generate errors. You can add a redelivery policy to any source in a flow.

Field Type Description Default Value Required

Max Redelivery Count

Number

Maximum number of times that a redelivered request is processed unsuccessfully before returning a REDELIVERY_EXHAUSTED error.

Use Secure Hash

Boolean

If true, Mule uses a secure hash algorithm to identify a redelivered message.

Message Digest Algorithm

String

Secure hashing algorithm to use if the Use Secure Hash field is true. If the payload of the message is a Java object, Mule ignores this value and returns the value that the payload’s hashCode() returned.

Id Expression

String

One or more expressions that determine when a message was redelivered. You can set this property only if the Use Secure Hash field is false.

Object Store

Object Store

Configures the object store that stores the redelivery counter for each message.

HTTP Connectivity Validator

Field Type Description Default Value Required

Request Path

String

Path used in the connectivity test request URI.

x

Request Method

String

HTTP Method for the connectivity test request.

GET

Follow Redirects

Boolean

Specifies whether to follow redirects or not.

true

Response Timeout

Number

Maximum time that the request element blocks the execution of the flow waiting for the HTTP response.

10000

Response Timeout Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Response timeout time unit.

MILLISECONDS

Request Body

String

The body in the connectivity test request. It can be an expression, but it doesn’t have any binding.

Request Headers

Array of Request Header

HTTP headers the connectivity test request includes. It allows multiple headers with the same key.

Request Query Params

Array of Query Parameter

Query parameters the connectivity test request includes. It allows multiple query params with the same key.

Request Uri Params

Array of URI Parameter

URI parameters the connectivity test request includes.

Response Validator

Validation applied to the connectivity test response.

Request Header

Field Type Description Default Value Required

Key

String

Key for this type.

x

Value

String

Value for this type.

x

Query Parameter

Field Type Description Default Value Required

Key

String

Key for this type.

x

Value

String

Value for this type.

x

URI Parameter

Field Type Description Default Value Required

Key

String

Key for this type.

x

Value

String

Value for this type.

x

TCP Client Socket Properties

Field Type Description Default Value Required

Connection Timeout

Number

30000

Send Tcp No Delay

Boolean

true

Linger

Number

Keep Alive

Boolean

false

Fail On Unresolved Host

Boolean

true

Send Buffer Size

Number

Receive Buffer Size

Number

Client Timeout

Number

Reuse Address

Boolean

true

Expiration Policy

Configures the minimum amount of time that a dynamic configuration instance can remain idle before Mule considers it eligible for expiration. This does not mean that the instance expires at the exact moment that it becomes eligible. Mule purges the instances as appropriate.

Field Type Description Default Value Required

Max Idle Time

Number

Maximum amount of time that a dynamic configuration instance can remain idle before Mule considers it eligible for expiration.

Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time unit for the Max Idle Time field.

Default Header

Headers automatically added to every outbound request.

Field Type Description Default Value Required

Key

String

Key for this type.

x

Value

String

Value for this type.

x

Query Parameter

Default query parameters the request should include.

Field Type Description Default Value Required

Key

String

The key name for default query parameter.

x

Value

String

The value for default query parameter.

x

HTTP Response Attributes

Configures HTTP response attributes for the configuration.

Field Type Description Default Value Required

Status Code

Number

The HTTP status code of the response. Former http.status.

x

Reason Phrase

String

The HTTP reason phrase of the response. Former http.reason.

x

Headers

Object

The map of HTTP headers in the message. Former properties.

x

Polling Request Header

Field Type Description Default Value Required

Key

String

The key name for the HTTP header.

x

Value

String

The value for the HTTP header. It can be an expression depending on a watermarking value that is resolved

x

Polling Request Uri Param

Field Type Description Default Value Required

Key

String

The key name for the HTTP URI parameter.

x

Value

String

The value for the HTTP URI parameter. It can be an expression depending on a watermarking value that is resolved

x

Polling Request Query Param

Field Type Description Default Value Required

Key

String

The key name for the HTTP query parameter.

x

Value

String

The value for the HTTP query parameter. It can be an expression depending on a watermarking value that is resolved

x

Basic Authentication

The basic authentication method enables an HTTP user agent to provide a username and password when making an HTTP request.

Field Type Description Default Value Required

Username

String

The username to authenticate.

x

Password

String

The password to authenticate.

x

Preemptive

Boolean

Configures if authentication is preemptive or not. Preemptive authentication sends the authentication header in the first request, instead of waiting for a 401 response code to send it.

true

Digest Authentication

The digest authentication method enables a web server to verify user credentials via the user’s web browser.

Field Type Description Default Value Required

Username

String

The username to authenticate.

x

Password

String

The password to authenticate.

x

Preemptive

Boolean

Configures if authentication is preemptive or not. Preemptive authentication sends the authentication header in the first request, instead of waiting for a 401 response code to send it.

true

NTLM Authentication

NT LAN Manager (NTLM) authentication replaces the authentication protocol in Microsoft LAN Manager (LANMAN), an older Microsoft product.

Field Type Description Default Value Required

Domain

String

The domain to authenticate.

Workstation

String

The workstation to authenticate.

Username

String

The username to authenticate.

x

Password

String

The password to authenticate.

x

Preemptive

Boolean

Configures if authentication is preemptive or not. Preemptive authentication sends the authentication header in the first request, instead of waiting for a 401 response code to send it.

true

Proxy

Reusable configuration element for outbound connections through a proxy. A proxy element must define a host name and a port attributes, and optionally can define a username and a password.

Field Type Description Default Value Required

Host

String

Host where the proxy requests is sent.

x

Port

Number

Port where the proxy requests is sent.

x

Username

String

The username to authenticate against the proxy.

Password

String

The password to authenticate against the proxy.

Non Proxy Hosts

String

A list of comma separated hosts against which the proxy isn’t used

NTLM Proxy

Field Type Description Default Value Required

NTLM Domain

String

The domain to authenticate against the proxy.

x

Host

String

Host where the proxy requests is sent.

x

Port

Number

Port where the proxy requests is sent.

x

Username

String

The username to authenticate against the proxy.

Password

String

The password to authenticate against the proxy.

Non Proxy Hosts

String

A list of comma separated hosts against which the proxy isn’t used

Success Status Code Validator

Field Type Description Default Value Required

Values

String

Status codes that are considered.

x

Failure Status Code Validator

Field Type Description Default Value Required

Values

String

Status codes that are considered.

x

Expression Response Validator

Field Type Description Default Value Required

Expression

String

DataWeave expression.

x

Origin

Field Type Description Default Value Required

Url

String

x

Access Control Max Age

Number

x

Allowed Methods

Array of Method

Allowed Headers

Array of Header

Expose Headers

Array of Header

Method

HTTP method name.

Field Type Description Default Value Required

Method Name

String

HTTP method name.

x

HTTP header name.

Field Type Description Default Value Required

Header Name

String

HTTP header name.

x

View on GitHub