Contact Free trial Login

Anypoint Exchange

Home to the complete listing of connectors, templates, examples and APIs.
Discover and use proven assets built by the MuleSoft ecosystem, or add assets to a private
tenant of Anypoint Exchange for collaboration and sharing of internal best practices.

API Gateway Sample HTTP Proxy

API Gateway Sample HTTP Proxy

(0 reviews)

This proxy lets you offer to your customers capabilities that are not implemented in your API, without the need of adding a single line of code to it. In combination with API Policies and API Gateway, you can improve your security, enrich incoming messages, add troubleshooting features like logging, etc.

The proxy is a Mule application and as such, it can be only deployed to a Mule runtime.
Note: If your API is already a Mule based application, then instead of using a proxy, you can just include the autodiscovery capability to it.

What happens to a request that goes through the proxy?

  • The X-Forwarded-For header is included or updated.
  • All headers received are forwarded to the implementation API, except for the ones that mule includes (X-MULE-SESSION, X-MULE-ENCODING, etc).
  • All headers received from the implementation API are forwarded to the client.
  • If a request can’t be accomplished because of a timeout problem, the client will receive a 504 - Gateway Timeout message.

    What else do you gain by using this type of proxy?

  • Users can leverage analytics information that is generated only if the API is tracked.
  • You have the ability to apply API Gateway policies to it.


Log into Anypoint Platform to download this asset


Created by
MuleSoft Organization
Published onMar 21, 2018


VersionRuntime version