Mercurial > prosody-hg
comparison teal-src/net/http/errors.d.tl @ 12609:a8eb838fc6cf
net.http: Add teal description files
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 24 Jul 2022 21:25:03 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 12608:946a11f794e2 | 12609:a8eb838fc6cf |
|---|---|
| 1 local record http_errors | |
| 2 enum known_conditions | |
| 3 "cancelled" | |
| 4 "connection-closed" | |
| 5 "certificate-chain-invalid" | |
| 6 "certificate-verify-failed" | |
| 7 "connection failed" | |
| 8 "invalid-url" | |
| 9 "unable to resolve service" | |
| 10 end | |
| 11 type registry_keys = known_conditions | integer | |
| 12 record error | |
| 13 type : string | |
| 14 condition : string | |
| 15 code : integer | |
| 16 text : string | |
| 17 end | |
| 18 registry : { registry_keys : error } | |
| 19 new : function (integer, known_conditions, table) | |
| 20 new : function (integer, string, table) | |
| 21 end | |
| 22 return http_errors |
