rafthttp: set the API boundary of the package

open for architecture and API ideas now.
avoid this kind of allocation please.