UrlFetcher v0.2.1 UrlFetcher.Http.MockServer View Source

Mock server

Routes

  • /test generates an html response page. Takes two query params:
    • links: list of link urls to embed in the html response body
    • assets: list of img urls to embed in the html response body
  • /failure generates an http error response. Takes one optional query param:
    • status: http status code to be returned
  • /redirect generates an http 301 redirect response. Takes one query param:
    • page: absolute url of page to be redirected to

Link to this section Summary

Functions

Callback implementation for Plug.call/2.

Callback implementation for Plug.init/1.

Link to this section Functions

Callback implementation for Plug.call/2.

Callback implementation for Plug.init/1.