Refactor class interface to encoding methods instead of direct request methods body and bodyStream.