Greetings to all.

I have spent the last couple of evenings learning about Rust and trying it out. Wrote a simple cli calculator as a first thing and thought I would improve it by making it available over http.

I was actually a bit surprised to find that there was no http tooling in the standard library, and searching online gave me an overload of information on different libraries and frameworks.

I ended up implementing my own simple HTTP server, might as well as this is a learning project.

Now I have it working, and while it isn’t perfect or done, I thought that this would be a good time to check what things I am doing wrong/badly.

Which is why I am here, would love to get some pointers on it all to make sure I am going in the right direction in the future.

The project is hosted here: https://github.com/Tebro/rsimple_http

You are viewing a single thread.
View all comments
5 points

I’m surprised that you’re surprised that there’s not http servers in the standard library

permalink
report
reply
3 points

I guess that it makes sense. I’ve been doing Go for the past two years.

permalink
report
parent
reply
7 points

You’re not crazy. HTTP is commonly part of standard libraries nowadays.

permalink
report
parent
reply
5 points

Only in languages that do not consider long term support before adding stuff to the standard library.

There really isn’t a good reason to add things like protocols that change significantly over time in a standard library.

permalink
report
parent
reply

Rust

!rust@programming.dev

Create post

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits
  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

Community stats

  • 607

    Monthly active users

  • 776

    Posts

  • 3.3K

    Comments