Expand description
NNTP protocol handling module
This module contains response parsing and protocol utilities for NNTP communication.
Structs§
- Nntp
Response - Represents a parsed NNTP response
- Response
Parser - Response parser for NNTP protocol
Enums§
- Response
Code - Categorized NNTP response code for type-safe handling
Constants§
- AUTH_
ACCEPTED - Authentication accepted response (281)
- AUTH_
REQUIRED - Authentication required response (381)
- BACKEND_
ERROR - Backend error response (503)
- BACKEND_
UNAVAILABLE - Backend server unavailable response (400)
- COMMAND_
NOT_ SUPPORTED - Command not supported response (500)
- COMMAND_
NOT_ SUPPORTED_ STATELESS - Command not supported in stateless proxy mode (500)
- CONNECTION_
CLOSING - Connection closing response (205)
- CRLF
- Line ending: “\r\n”
- DATE
- DATE command (RFC 3977 Section 7.1)
- GOODBYE
- Goodbye message (205) - common in tests
- MIN_
RESPONSE_ LENGTH - Minimum response length (3-digit code + CRLF)
- MULTILINE_
TERMINATOR - Multiline response terminator: “\r\n.\r\n” (RFC 3977)
- PROXY_
GREETING_ PCR - Proxy greeting for per-command routing mode (200)
- QUIT
- QUIT command (RFC 3977 Section 5.4)
- TERMINATOR_
TAIL_ SIZE - Terminator tail size for spanning terminator detection
Functions§
- article_
by_ msgid - Construct ARTICLE command with message-ID (RFC 3977 Section 6.2.1)
- authinfo_
pass - Construct AUTHINFO PASS command (RFC 4643 Section 2.4)
- authinfo_
user - Construct AUTHINFO USER command (RFC 4643 Section 2.3)
- body_
by_ msgid - Construct BODY command with message-ID (RFC 3977 Section 6.2.3)
- error_
response - Construct a generic error response with custom code and message
- greeting
- Construct a greeting response (200)
- greeting_
readonly - Construct a read-only greeting response (201)
- head_
by_ msgid - Construct HEAD command with message-ID (RFC 3977 Section 6.2.2)
- ok_
response - Construct a generic OK response (200)
- response
- Construct a response with custom status code and message
- send_
proxy_ greeting - Send NNTP proxy greeting to a client
- stat_
by_ msgid - Construct STAT command with message-ID (RFC 3977 Section 6.2.4)