Expand description
HTTP-backed table directory backend for SIM.
HttpDir treats each table key as a resource below a configured base URL.
Keys are percent-encoded as one URL path segment. Reads perform bounded GET
requests, writes perform bounded PUT or POST requests, and deletes
perform bounded DELETE requests. Directory traversal methods return an
unsupported error unless an indexed HTTP resource is added by a caller.
Every effectful operation requires the canonical net/http capability, with
the compatibility aliases accepted by sim-table-core.
Structs§
- HttpDir
- A table directory backed by direct HTTP resources.
- Http
DirDescriptor - Serialized configuration for an
HttpDir. - Http
DirOptions - Configuration for an
HttpDir.
Enums§
- Http
Write Method - The HTTP method used for table
set.
Statics§
- RECIPES
- Cookbook recipes for this lib, embedded at build time.
Functions§
- http_
dir_ class_ symbol - The fully qualified class symbol (
table/HttpDir) for the HTTP directory. - install_
http_ dir_ lib - Creates an HTTP directory value from
options. - require_
table_ http - Require direct HTTP authority, accepting compatibility aliases.
- table_
http_ capability - The capability gating direct HTTP table operations (
net/http).