Reqord.CassetteEntry.Request (reqord v0.4.0)

View Source

Represents the request portion of a cassette entry.

Summary

Functions

Creates a new Request struct with validation.

Types

t()

@type t() :: %Reqord.CassetteEntry.Request{
  body_hash: String.t(),
  headers: Reqord.CassetteEntry.headers(),
  method: String.t(),
  url: String.t()
}

Functions

new(method, url, headers, body_hash)

@spec new(String.t(), String.t(), map(), String.t()) ::
  {:ok, t()} | {:error, String.t()}

Creates a new Request struct with validation.