This post has code examples for Actix-Web Basic and Bearer authentications in Rust. In a Basic authentication scheme, a client transmits credentials as user Id and password pairs in base64 format. Meanwhile, a client sends a string token in a
Rust REST API, Actix-web, PostgreSQL – Part 2: The Project
Previously, we had a bit of an overview and prerequisites of the stuff needed to start creating a REST API example in Rust using Actix-web and PostgreSQL project. This post is the second part and gives an overview of the
Rust – Upload Files in Actix-Web Sample Application
This post is about uploading a file or multiple files to a running Actix-web application.
Rust – How to Return JSON Responses from Actix-web
Are you planning to develop an API-only backend using Rust and Actix-web? If so, you need to know how to return JSON responses from Actix-web. This post briefly shows how to create a Rust application using actix-web that returns JSON responses.
Rust REST API, Actix-web, PostgreSQL – Part 3: The Codes
We had an overview of the project structure. This post shows the codes of the files mentioned in the previous post.
Secure Actix-Web Application With TLS
This post demonstrates how to secure a Actix-web web application in Rust.
Have You Started Using Actix-Web? It May Already Be Dead
Have you started using Actix-Web in your learning of Rust or real projects? Actix-web is now dead and no longer an open-source project. The author has moved it, along with Actix-Net, to his personal GitHub account. He is taking his
Actix-Web: The Most Fun Rust Web Framework Is Back!
The most fun Rust web framework is back with a new project leader! I feel relieved by its comeback. Today, I was trying out one of the alternatives to Actix-web. But I was having difficulties making it read and parse
Working with Actix-Web HTTP Requests
When working with Actix-Web, we sometimes need to access incoming HTTP requests to inspect for some values. In that case, we need to use the HttpRequest struct either in request handlers and middlewares. Cargo.toml We will use the following dependencies
Send HTTP Responses From Actix-Web
Learning how to send HTTP responses from Actix-web to clients will help us craft the responses according to our needs. For instance, we could send JSON responses for specific URIs. Although we could just set the response content type and