Networking

In this chapter, we will cover the following recipes:

  • Setting up a basic HTTP server
  • Configuring an HTTP server to perform echoing and routing
  • Configuring an HTTP server to perform file serving
  • Making requests to APIs
  • Setting up a basic UDP Socket
  • Configuring a UDP socket to perform echoing
  • Setting up a secure connection via TLS

Introduction

Through the internet, the world is getting smaller every day. The web connects people in amazing ways. Countless services are available at your fingertips for free. Millions of people can use your apps without even installing it.

As a developer wanting to take advantage of this, porting your app to the internet can be quite easy if you have set your architecture up in a clean way. The only ...

Get Rust Standard Library Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.