carlos / platform Public

Clone
git clone https://amadan.net/carlos/platform

Plain git — no account needed to clone.

Download

Download this file

1package console
2
3import "net/http"
4
5// writeClaimPending answers a delete door from the retire error itself:
6// 202 only for a delete this console's own operation made durable, 409 for
7// a refusal before any effect. It never infers ownership from the host
8// claim (a foreign operation's claim must not read as this request's).
9func (s *Server) writeClaimPending(w http.ResponseWriter, err error) bool {
10 if !s.cfg.HostClaim {
11 return false
12 }
13 return claimRetireOutcome(w, err)
14}
15