Opsmaru.Containers.Docker.Admission (opsmaru_containers v0.1.0)

Copy Markdown View Source

Shared backend-free route classification, host authorization and version selection for HTTP and raw listener adapters.

Summary

Functions

Authorize an origin-form request using a host callback module. The request includes its method, original encoded path and raw query. The listener can include peer information for the host to authenticate.

Types

rejection()

@type rejection() :: {:error, pos_integer(), String.t()}

Functions

admit(host, request, deadline)

@spec admit(module(), map(), integer()) :: {:ok, map()} | rejection()

Authorize an origin-form request using a host callback module. The request includes its method, original encoded path and raw query. The listener can include peer information for the host to authenticate.