DesignIntake#
- class pulserver.proxy.DesignIntake[source]#
Bases:
objectReceives stored designs over HTTP into the design store the proxy reads.
HEAD /designs/<scan>/<id>answers 200 when the scan holds the design, which marks the scan as used forprune(), and 404 otherwise;PUT /designs/<scan>/<id>stores a bundle ofpack()after checking every file against its manifest, and answers 201, or 200 for a design already stored. A bundle that is not the design its path names is refused with 400 and the reason. The endpoint is neither authenticated nor encrypted.- Parameters:
store (Path | str) – Directory of scans; created when missing.
host (str, default='127.0.0.1') – Address to listen on; the loopback interface by default.
port (int, default=0) – TCP port; 0 takes a free one.
received (Callable[[Path], object], default=None) – Called with the directory of each design stored or found stored, in a thread of its own once the request is answered: a proxy tabulates the design there, ahead of the scan that plays it.
Methods
Attributes
Port the intake listens on. |