Packages

WebSpell is an HTTP mocking library for Elixir. It is somewhat inspired by WebMock for Ruby, but adapted to the different programming environment of Elixir.

Current section

Files

Jump to
web_spell lib web_spell response.ex
Raw

lib/web_spell/response.ex

defmodule WebSpell.Response do
@moduledoc "Represents a response to a stubbed request, consisting of the HTTP status and the body. Pass Response structs to the functions in the WebSpell module."
@enforce_keys [:body]
defstruct body: nil, status: 200
end