Clean up code and add plans for future releases.
This commit is contained in:
parent
94b88da5c2
commit
0ab408fbb0
|
@ -30,4 +30,6 @@ sudo dpkg -i "mirror-server-${VERSION}_amd64.deb"
|
||||||
* [x] Add mirroring of JSON request.
|
* [x] Add mirroring of JSON request.
|
||||||
* [x] Add logging to server.
|
* [x] Add logging to server.
|
||||||
* [x] ~~Add convenience path to access logging for a certain date / records.~~
|
* [x] ~~Add convenience path to access logging for a certain date / records.~~
|
||||||
* [ ] Dockerize mirror-server for easier distribution.
|
* [ ] Create Docker image for mirror-server for easier distribution.
|
||||||
|
* [ ] Add publishing of DEB and Docker image to DroneCI.
|
||||||
|
* [ ] Add OpenAPI/Swagger UI
|
||||||
|
|
|
@ -35,12 +35,12 @@ struct EchoResponse {
|
||||||
async fn echo_request(
|
async fn echo_request(
|
||||||
method: Method,
|
method: Method,
|
||||||
original_uri: OriginalUri,
|
original_uri: OriginalUri,
|
||||||
host: Host,
|
Host(host): Host,
|
||||||
header_map: HeaderMap,
|
header_map: HeaderMap,
|
||||||
body: Option<Json<Value>>,
|
body: Option<Json<Value>>,
|
||||||
) -> Json<EchoResponse> {
|
) -> Json<EchoResponse> {
|
||||||
let method = method.to_string();
|
let method = method.to_string();
|
||||||
let host = host.0;
|
let host = host;
|
||||||
let path = original_uri.path().to_string();
|
let path = original_uri.path().to_string();
|
||||||
let headers = header_map
|
let headers = header_map
|
||||||
.iter()
|
.iter()
|
||||||
|
|
Loading…
Reference in New Issue