Moxinet.Server (moxinet v0.3.0)

Creates a mocking server where service-specific mocks can be added

Example

defmodule MockServer do
  use Moxinet.Server

  forward("/github", to: GithubMock)
end

Summary

Functions

Turns a module into a Moxinet server

Functions

__using__(opts)

(macro)

Turns a module into a Moxinet server

Options

  • log: Whether requests should be logged or not. Defaults to false