update status code names to match the spec
This commit is contained in:
parent
c20619ffcb
commit
1b07b0a594
10
CHANGELOG.md
10
CHANGELOG.md
|
@ -9,11 +9,19 @@
|
||||||
|
|
||||||
#### Internal Framework
|
#### Internal Framework
|
||||||
|
|
||||||
|
- The status code definitions have been updated to match the recent changes
|
||||||
|
to the gemini spec:
|
||||||
|
- 21 ``SUCCESS_END_OF_SESSION`` -> (removed)
|
||||||
|
- 61 ``TRANSIENT_CERTIFICATE_REQUESTED`` -> ``CERTIFICATE_NOT_AUTHORISED``
|
||||||
|
- 62 ``AUTHORISED_CERTIFICATE_REQUIRED`` -> ``CERTIFICATE_NOT_VALID``
|
||||||
|
- 63 ``CERTIFICATE_NOT_ACCEPTED`` -> (removed)
|
||||||
|
- 64 ``FUTURE_CERTIFICATE_REJECTED`` -> (removed)
|
||||||
|
- 65 ``EXPIRED_CERTIFICATE_REJECTED`` -> (removed)
|
||||||
- If a gemini response returns a twisted.Deferred object, the errback will
|
- If a gemini response returns a twisted.Deferred object, the errback will
|
||||||
now be invoked when the TCP connection is closed.
|
now be invoked when the TCP connection is closed.
|
||||||
- Added a new example that demonstrates streaming data to client connections
|
- Added a new example that demonstrates streaming data to client connections
|
||||||
(examples/chatroom.py).
|
(examples/chatroom.py).
|
||||||
|
|
||||||
### v0.4.0 (2020-06-09)
|
### v0.4.0 (2020-06-09)
|
||||||
|
|
||||||
#### Features
|
#### Features
|
||||||
|
|
|
@ -17,7 +17,6 @@ class Status:
|
||||||
SENSITIVE_INPUT = 11
|
SENSITIVE_INPUT = 11
|
||||||
|
|
||||||
SUCCESS = 20
|
SUCCESS = 20
|
||||||
SUCCESS_END_OF_SESSION = 21
|
|
||||||
|
|
||||||
REDIRECT_TEMPORARY = 30
|
REDIRECT_TEMPORARY = 30
|
||||||
REDIRECT_PERMANENT = 31
|
REDIRECT_PERMANENT = 31
|
||||||
|
@ -35,11 +34,8 @@ class Status:
|
||||||
BAD_REQUEST = 59
|
BAD_REQUEST = 59
|
||||||
|
|
||||||
CLIENT_CERTIFICATE_REQUIRED = 60
|
CLIENT_CERTIFICATE_REQUIRED = 60
|
||||||
TRANSIENT_CERTIFICATE_REQUESTED = 61
|
CERTIFICATE_NOT_AUTHORISED = 61
|
||||||
AUTHORISED_CERTIFICATE_REQUIRED = 62
|
CERTIFICATE_NOT_VALID = 62
|
||||||
CERTIFICATE_NOT_ACCEPTED = 63
|
|
||||||
FUTURE_CERTIFICATE_REJECTED = 64
|
|
||||||
EXPIRED_CERTIFICATE_REJECTED = 65
|
|
||||||
|
|
||||||
|
|
||||||
class Request:
|
class Request:
|
||||||
|
|
Loading…
Reference in New Issue