Libmention.Outgoing.Proxy (libmention v0.1.2)

A proxy is available for local development purposes.

When the proxy is enabled, all outgoing http requests are routed to it. This provides a way to test your outgoing webmentions locally since they will always fail when running on a localhost.

The reason they will fail is because the server receiving the webmention is, according to the spec, required to query the sender (in this case localhost) and validate the url that was sent. In the case of local development, this will fail and you won't get a good idea if you are sending the correct payload.

The proxy also makes available a small web-based dashboard where you can inspect the webmentions you sent including their payload.

By default, the proxy exposes a web interface at http://localhost:8082/sent but the port is configurable via the Libmention.Supervisor Outgoing options.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Link to this section Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.