HEX
Server: Apache
System: Windows NT MAGNETO-ARM 10.0 build 22000 (Windows 10) AMD64
User: Michel (0)
PHP: 7.4.7
Disabled: NONE
Upload Files
File: C:/Ruby27-x64/lib/ruby/gems/2.7.0/doc/actionpack-7.0.4.2/ri/ActionController/Live/send_stream-i.ri
U:RDoc::AnyMethod[iI"send_stream:ETI"'ActionController::Live#send_stream;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"tSends a stream to the browser, which is helpful when you're generating exports or other running data where you ;TI"udon't want the entire file buffered in memory first. Similar to send_data, but where the data is generated live.;To:RDoc::Markup::BlankLineo;
;	[I"
Options:;To:RDoc::Markup::List:
@type:BULLET:@items[o:RDoc::Markup::ListItem:@label0;	[o;
;	[I"E<tt>:filename</tt> - suggests a filename for the browser to use.;To;;0;	[o;
;	[	I"6<tt>:type</tt> - specifies an HTTP content type. ;TI"}You can specify either a string or a symbol for a registered type with <tt>Mime::Type.register</tt>, for example :json. ;TI"`If omitted, type will be inferred from the file extension specified in <tt>:filename</tt>. ;TI"rIf no content type is registered for the extension, the default type 'application/octet-stream' will be used.;To;;0;	[o;
;	[I"\<tt>:disposition</tt> - specifies whether the file will be shown inline or downloaded. ;TI":Valid values are 'inline' and 'attachment' (default).;T@o;
;	[I"(Example of generating a csv export:;T@o:RDoc::Markup::Verbatim;	[I":send_stream(filename: "subscribers.csv") do |stream|
;TI"1  stream.write "email_address,updated_at\n"
;TI"
;TI".  @subscribers.find_each do |subscriber|
;TI"O    stream.write "#{subscriber.email_address},#{subscriber.updated_at}\n"
;TI"  end
;TI"end;T:@format0:
@fileI"(lib/action_controller/metal/live.rb;T:0@omit_headings_from_table_of_contents_below00I"stream;T[I"6(filename:, disposition: "attachment", type: nil);T@4FI"	Live;TcRDoc::NormalModule00