#NEWLINE# def encode_request( name , delta ) : #NEWLINE# #INDENT# ' Encode request into client_message' #NEWLINE# client_message = ClientMessage ( payload_size = calculate_size ( name , delta ) ) #NEWLINE# client_message . set_message_type ( REQUEST_TYPE ) #NEWLINE# client_message . set_retryable ( RETRYABLE ) #NEWLINE# client_message . append_str ( name ) #NEWLINE# client_message . append_long ( delta ) #NEWLINE# client_message . update_frame_length ( ) #NEWLINE# return client_message