ignore_eof -> boolRuby 3.2 から[permalink][rdoc][edit]ignore_eof=(bool)-
Content-Length:ヘッダフィールドが指定されたボディを読み込む際に、EOF (End Of File) を無視するかどうかを取得・設定します。- [PARAM]
bool: - EOF を無視するかどうかを真偽値で指定します。
require 'net/http' uri = URI('http://www.example.com/index.html') response = Net::HTTP.get_response(uri) response.ignore_eof = false p response.ignore_eof # => false[SEE_ALSO] Net::HTTP#ignore_eof
- [PARAM]