Add body_reader func as a parameter on the returned res table, also minor trailing whitespace fixes