The response logic is in the HTTPResponse::from() associated function but it's ugly... To follow the web server design pattern, implement a Router calling the right Controller (handle the response logic).
The response logic is in the `HTTPResponse::from()` associated function but it's ugly... To follow the web server design pattern, implement a `Router` calling the right `Controller` (handle the response logic).
Router must route the request to the right Handler:
rename handlers module to http with request.rs and response.rs
Router may have is own module (interface between the http and handlers modules)
create an handlers module implementing the logic
`Router` must route the request to the right `Handler`:
* rename **handlers** module to **http** with `request.rs` and `response.rs`
* `Router` may have is own module (interface between the http and handlers modules)
* create an **handlers** module implementing the logic
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The response logic is in the
HTTPResponse::from()associated function but it's ugly... To follow the web server design pattern, implement aRoutercalling the rightController(handle the response logic).Routermust route the request to the rightHandler:request.rsandresponse.rsRoutermay have is own module (interface between the http and handlers modules)