Class: Net::NNTP::Post

Inherits:
PostingRequest show all
Defined in:
lib/net/nntp/request.rb

Overview

RFC 3977

POST request.

Valid Responses: ArticleReceived, PostArticle, PostingNotPermitted, PostingFailed

Instance Method Summary collapse

Methods inherited from PostingRequest

#body, #body=

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