@ file : Jvm Name (" HttpResponse Extensions ") Ċ Ċ package Ġcom . nor ger man . server . internal . extensions Ċ Ċ import Ġio . netty . handler . codec . http .* Ċ Ċ /** Ċ Ġ* ĠCreated Ġby ĠNor ger man Ġon Ġ 4 / 2 / 2 0 1 6 . Ċ Ġ* ĠHttpResponse Extensions . kt Ċ Ġ*/ Ċ Ċ internal Ġfun ĠHttpResponse . setContent Length ( length : ĠLong ) Ġ{ ĊĠĠĠ ĠHttp Headers . setContent Length ( this , Ġlength ); ĊĠĠĠ Ġthis . headers (). remove ( HttpHeaders . Names . TRANSFER _ ENCODING ); Ċ } Ċ Ċ internal Ġfun ĠHttpResponse . set Transfer Encoding Chunk ed () Ġ{ ĊĠĠĠ ĠHttp Headers . set Transfer Encoding Chunk ed ( this ) ĊĠĠĠ Ġthis . headers (). remove ( HttpHeaders . Names . CONTENT _ RANGE ); Ċ } Ċ Ċ internal Ġfun ĠHttpResponse . setContent Range ( first : ĠLong , Ġcount : ĠLong , Ġtotal Length : ĠLong ) Ġ{ ĊĠĠĠ Ġthis . headers (). add ( HttpHeaders . Names . CONTENT _ RANGE , Ġ" bytes Ġ$ first -${ first Ġ+ Ġcount Ġ- Ġ 1 }/ $ total Length "); ĊĠĠĠ Ġthis . setContent Length ( count ); Ċ } Ċ Ċ internal Ġfun ĠHttpResponse . set KeepAlive ( keep Alive : ĠBoolean ) Ġ= ĠHttp Headers . set KeepAlive ( this , Ġkeep Alive );