Can you do serious web development , like flask, but in a compiled language?
All programming languages allow you to create sockets to listen on, and send data over. Doesn’t matter whether it is compiled or interpreted.
If you don’t want to do it from scratch then there are plenty of HTTP server libraries out there - at least one for every language. C, Go, Rust, Java, Haskell, … you name it, one exists.