Class: Net::NNTP::Post
- Inherits:
-
PostingRequest
- Object
- Request
- PostingRequest
- Net::NNTP::Post
- Defined in:
- lib/net/nntp/request.rb
Overview
POST request.
Valid Responses: ArticleReceived, PostArticle, PostingNotPermitted, PostingFailed
Instance Method Summary collapse
-
#initialize(body = nil) ⇒ Post
constructor
The parameter
body
should be the body in Mail format.
Methods inherited from PostingRequest
Methods inherited from Request
#capability, #command, #dotstuff, #msgid_or_range, #range, #valid_response?
Constructor Details
#initialize(body = nil) ⇒ Post
The parameter body
should be the body in Mail format. DO NOT use dot-stuffing or <CR-LF>.<CR-LF> delimiter!
See PostingRequest for an example.
597 598 599 600 |
# File 'lib/net/nntp/request.rb', line 597 def initialize(body=nil) self.body = body unless body.nil? super "POST" end |