News for hackers. Stuff that matters.
Re:Writing a Microservice in Rust by Rotareti on Friday March 09, 2018 @12:34AM (#16549991)
This looks exactly like the Python code I'm currently writing. That's what I would call a Flask-like API. Nice seeing this in Rust!

A Python equivalent using the typing module:

    @app.get("/<times>")
    def message_query(times: TimeRange) -> str:
        return format("{:?}", times)

There are no comments on this comment yet.