oxidecomputer / dropshot

expose REST APIs from a Rust program
Apache License 2.0
843 stars 74 forks source link

[10/n] [dropshot_endpoint] move some shared code to common modules #1036

Closed sunshowers closed 3 months ago

sunshowers commented 3 months ago

This is pure code movement without any functional changes.

We're going to reuse most of this code for our new, improved channel implementation shortly.

Also make a couple small changes to do_endpoint_inner and EndpointParams. The analogous code structure is required for channels, and it's nice to have the two implementations be as close as possible.