method

write

ruby latest stable - Class: Net::HTTPGenericRequest::Chunker
write(buf)
public

No documentation available.

# File lib/net/http/generic_request.rb, line 169
    def write(buf)
      # avoid memcpy() of buf, buf can huge and eat memory bandwidth
      @sock.write("#{buf.bytesize.to_s(16)}\r\n")
      rv = @sock.write(buf)
      @sock.write("\r\n")
      rv
    end