HttpAuthorizationPlan

data class HttpAuthorizationPlan(val method: String, val url: String, val payloadSha256: String?, val authorizationHeader: String, val event: SignedNostrEvent, val allowAuthorizationOnRedirect: Boolean)

Signed NIP-98 plan; create a fresh plan after every redirect.

Constructors

Link copied to clipboard
constructor(method: String, url: String, payloadSha256: String?, authorizationHeader: String, event: SignedNostrEvent, allowAuthorizationOnRedirect: Boolean)

Properties

Link copied to clipboard

Always false; callers must mint a new plan.

Link copied to clipboard

Complete Authorization header value.

Link copied to clipboard

Verified signed NIP-98 event.

Link copied to clipboard

Canonical uppercase HTTP method bound by the event.

Link copied to clipboard

Optional lowercase SHA-256 of the request body.

Link copied to clipboard
val url: String

Exact request URL bound by the event.