def send_chunk(type, content = nil)
      chunk = Chunk.new(type, content).to_s
      socket.write chunk
    end
def send_chunk(type, content = nil)
      chunk = Chunk.new(type, content).to_s
      socket.write chunk
    end
Private: Send a chunk. Used by the higher-level methods

 type - the chunk type
 content = nil - the actual content