Method: Net::HTTP::Server::ChunkedStream#close
- Defined in:
- lib/net/http/server/chunked_stream.rb
#close ⇒ Object
Closes the chunked stream.
106 107 108 109 110 |
# File 'lib/net/http/server/chunked_stream.rb', line 106 def close # last chunk @socket.write("0\r\n\r\n") @socket.flush end |