SelectoComponents.QueryContract.ChoiceSource.Request (selecto_components v0.4.8)

Transport-neutral HTTP request for query-contract choice-source links.

SelectoComponents does not prescribe an HTTP client. Host applications can turn this struct into a Req, Finch, browser hook, or test transport call.

Link to this section Summary

Link to this section Types

@type method() :: :get | :post
@type operation() :: :options | :validate
@type t() :: %SelectoComponents.QueryContract.ChoiceSource.Request{
  body: map() | nil,
  choice_source: String.t(),
  headers: [{String.t(), String.t()}],
  metadata: map(),
  method: method(),
  operation: operation(),
  url: String.t()
}