void function ( ByteBuffer arg0 ) { int loc0 = arg0 . position ( ) ; int loc1 = arg0 . limit ( ) ; if ( loc0 > loc1 ) { throw new BodyEncoderException ( "srini_string" ) ; } encode ( arg0 , 0 , loc1 - loc0 ) ; }
this method is used to encode the provided buffer of bytes in a http/1 .1 compliant format and sent it to the client . once the data has been encoded it is handed to the transport layer within the server , which may choose to buffer the data if the content is too small to send efficiently or if the socket is not write ready . concode_field_sep BodyObserver observer concode_elem_sep long count concode_elem_sep long limit concode_elem_sep ByteWriter writer concode_field_sep void flush concode_elem_sep void close