Versions in this module Expand all Collapse all v2 v2.1.0 May 2, 2026 Changes in this version + func PollHandler[T any](config PollConfig[T]) http.Handler + func WriteAccepted(w http.ResponseWriter, config AcceptedConfig) + func WriteOperation[T any](w http.ResponseWriter, status int, operation Operation[T]) + type Accepted struct + ID string + Location string + State State + type AcceptedConfig struct + ID string + Location string + RetryAfter time.Duration + type Operation struct + ID string + Problem *httpx.Problem + Result *T + State State + type PollConfig struct + ErrorWriter func(http.ResponseWriter, int, httpx.Problem) + OperationID func(*http.Request) string + Store Store[T] + type State string + const StateCanceled + const StateFailed + const StatePending + const StateRunning + const StateSucceeded + type Store interface + GetOperation func(ctx context.Context, id string) (Operation[T], bool, error) + type StoreFunc func(context.Context, string) (Operation[T], bool, error) + func (f StoreFunc[T]) GetOperation(ctx context.Context, id string) (Operation[T], bool, error)