Encode the given text as in ‘chunked’ encoding.
71 72 73
# File 'lib/ftw/protocol.rb', line 71 def encode_chunked(text) return sprintf("%x%s%s%s", text.bytesize, CRLF, text, CRLF) end