HTTP Listener
This source connector acts as an HTTP server, listening for requests from one or more remote clients. The messages sent to the channel can be the raw payload, or an XML document allowing multipart payloads to be parsed in a consistent and easy-to-use way. The HTTP payload can be either Base64 encoded or converted using a charset, depending on the Content-Type. Responses that go back to each client can be fully configured, including custom response headers. Finally, static resources or directories can be automatically hosted, to allow the connector to act as a simple web server that serves specific content. Additional options are available with the SSL Manager extension.
Supported property groups:
Item | Name | Default Value | Description |
---|---|---|---|
A | Base Context Path | The context path for the HTTP Listener URL.
| |
B | Receive Timeout (ms) | 30000 | The maximum idle time in milliseconds for a connection. |
C | Message Content | Plain Body |
|
D | Parse Multipart | Yes | Applies only to Message Content XML Body.
|
E | Include Metadata | No | Applies only to Message Content XML Body. Select Yes to include request metadata (method, context path, headers, query parameters) in the XML content. |
F | Binary MIME Types | application/.* (?<!json|xml)$| image/.*|video /.*|audio/.* | When a response comes in with a Content-Type header that matches one of these entries, the content will be encoded into a Base64 string.
|
G | HTTP URL | <auto-generated> | Displays the generated HTTP URL for the HTTP Listener. This is not an actual configurable setting, but is instead displayed for copy/paste convenience. |
H | Response Content Type | text/plain | The MIME type to be used for the response. |
I | Response Data Type | Text |
|
J | Charset Encoding | UTF-8 | Select the character set encoding to be used for the response to the sending system. Set to Default to assume the default character set encoding for the JVM Mirth® Connect by NextGen Healthcare is running on. |
K | Response Status Code | Enter the status code for the HTTP response.
| |
L | Response Headers Map Variable | Use Table |
|
M | Response Headers | When using the Use Table option above, enter custom headers to send back to the originating client | |
N | Static Resources | Values in this table are automatically sent back to any request with the matching context path. There are three resource types:
|