Class: Net::NNTP::Xhdr

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

Overview

Extension RFC2980

XHDR request.

Warning

Deprecated in RFC 3977. See Hdr. Still there, because a lot of servers do run the old version.

See also: HeaderResponse

Instance Method Summary collapse

Methods inherited from Request

#capability, #command, #dotstuff, #msgid_or_range, #range, #valid_response?

Constructor Details

#initialize(field, range = nil) ⇒ Xhdr

  • field is the header field that should be retrieved

  • range can be a string or a hash with either the key :msgid or the keys :start and optionally :end to denote a range.



800
801
802
803
804
# File 'lib/net/nntp/request.rb', line 800

def initialize(field, range=nil)
  params = field
  params << ' ' << msgid_or_range(range) if range
  super 'XHDR', params
end