I've been doing rust for just short while but didn't much struggle until this issue. I want to authenticate each request, and make returned value (fro ...
I've been doing rust for just short while but didn't much struggle until this issue. I want to authenticate each request, and make returned value (fro ...
I am building a backend application that uses a S3 bucket as main data provider and Rust's actix-web as web framework. The bucket connection and the c ...
I try to give the Client the HTML, CSS and JavaScript file but it doesn't work. async fn get_homepage() -> impl Responder { let html = include ...
Context I've build a RESTful API server in Actix-Web with Rust that's hosted on a Heroku paid plan. It has n amount of publicly available endpoints t ...
I have a model here: that in my api handlers, I try to convert the body of a request into like so: Except, I don't want to have to pass the fiel ...
I'm using actix-web v4. I'm trying to implement a web service with a custom structure for handling errors: pub struct ApiError { pub message: St ...
I am experimenting with Tokio, Reqwest and Actix-web and creating am API that connects to SendGrid to send simple emails. I am stuck on an error: ...
BACKGROUND: I'm trying to build a postgres-compatible rust server using actix-web & sqlx into a docker container. It's a basic RESTful API for a ...
I have the following main function (CORS is there since I'm using actix to serve a public API): use actix_cors::Cors; use anyhow::Result; use actix_w ...
I am very VERY new to rust (coming from c++ & go), and I am trying to implement a simple rest API backed by a mysql database to learn the language ...
I'd like to factor out some payload handling logic from my route handler. I'm not sure how to handle the type appropriately. Specifically, I want to m ...
I recently updated to actix web 4, I had some tests that used the actix-web test module that stopped working as expected in the process. I'm sure it's ...
I am using actix-web to run a webserver and want to be able to mutate state through websocket messages. My current way of using websockets is through ...
I try to find a way not to answer to an unwanted request (assimilated to ddos) by closing the connection without let the client it be known. This way, ...
I'm trying to implement a simple Actix API, and the first method I'm testing, is one for creating a "book" object in a SQLite database. I've got the u ...
I'm trying to replicate a simple benchmark for async-channel in actix-web. However, actix seems never to call the recv function. How can this be? Doe ...
How do you access a crossbeam channel "send" from every actix-ws callback? This is a version of this asked on a specific example with a beautiful MRE ...
I use Actix and Redis with Docker Compose. Here is docker-compose.yaml: version: "3.9" services: web: image: actixblog ports: - "808 ...
Im learning rust and I came across this sample code: As someone coming from Java, I dont know what this line of code means: If I remove that and ...
I'm working on an internal API with which approved users can read from and insert into a database. My intention is for this program to run on our loca ...