A source application that listens for HTTP requests and emits the body as a message payload.
If the Content-Type matches text/*
or application/json
, the payload will be a String,
otherwise the payload will be a byte array.
If content type matches text/*
or application/json
-
String
If content type does not match text/*
or application/json
-
byte array
The http source supports the following configuration properties:
Properties grouped by prefix:
- allow-credentials
-
Whether the browser should include any cookies associated with the domain of the request being annotated. (Boolean, default:
<none>
) - allowed-headers
-
List of request headers that can be used during the actual request. (String[], default:
<none>
) - allowed-origins
-
List of allowed origins, e.g. https://domain1.com. (String[], default:
<none>
)
- mapped-request-headers
-
Headers that will be mapped. (String[], default:
<none>
) - path-pattern
-
HTTP endpoint path mapping. (String, default:
/
)