为什么 Mule http 入站端点总是 GET 请求。我正在记录 http 方法的类型,即使我在 http 入站端点中指定了方法类型 PUT,它也始终记录类型是 GET
。
<http:inbound-endpoint exchange-pattern="request-response"
path="testPath" doc:name="HTTP"
host="localhost" port="8083"
mimeType="application/json"
method="PUT"/>
<logger level="INFO" message="method type #[message.inboundProperties['http.method']]"
doc:name="Logger"/> <--- It always logs method is GET
It never go into following expression block:
<choice doc:name="Choice">
<when expression="#[message.inboundProperties['http.method']=='PUT']">
我想在 http 入站端点中将 http 方法设置为“PUT”