Class: Weary::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/em-net-http/weary.rb

Instance Method Summary collapse

Instance Method Details

#content_typeObject

Weary doesn’t like Content-Type headers with extra bits on the end, like ‘; encoding=utf-8’.



4
# File 'lib/em-net-http/weary.rb', line 4

def content_type ; @content_type.split(';').first ; end

#valueObject



6
# File 'lib/em-net-http/weary.rb', line 6

def value ; self ; end