Pact.PactVerifier.HttpRequest (pact_verifier_ex v0.1.6)

Copy Markdown

Structure representing an HTTP request used during provider verification.

This struct is used to model HTTP requests sent to the provider or for state change callbacks during the verification process.

Fields

  • method - The HTTP method (e.g., GET, POST, PUT, DELETE).
  • path - The request path (relative to the provider base URL).
  • query - Optional map of query parameters.
  • headers - Optional map of HTTP headers to include in the request.

Summary

Types

t()

@type t() :: %Pact.PactVerifier.HttpRequest{
  headers: nil | map(),
  method: String.t(),
  path: String.t(),
  query: nil | map()
}