---
title: "Discussion on \"Building a Proxy Server in Rust with Axum | Rust.\" | Hashnode"
description: "Discussion on \"Building a Proxy Server in Rust with Axum | Rust.\". In this article, you'll learn how to use Axum, an asynchronous Rust-based web framework, to build a  proxy server."
url: "https://hashnode.com/posts/building-a-proxy-server-in-rust-with-axum-rust/643de188f0a809de01e49dd0"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Building a Proxy Server in Rust with Axum | Rust.](https://carlosmv.hashnode.dev/building-a-proxy-server-in-rust-with-axum-rust?utm_source=hashnode&utm_medium=feed)

In this article, you'll learn how to use Axum, an asynchronous Rust-based web framework, to build a proxy server.

Apr 18, 2023 · 9 min read · carlosmv.hashnode.dev  
Updated Apr 19, 2023  
Read the article

-   [#rust](https://hashnode.com/tag/rust)
-   [#proxy](https://hashnode.com/tag/proxy)
-   [#axum](https://hashnode.com/tag/axum)
-   [#server](https://hashnode.com/tag/server)
-   [#backend](https://hashnode.com/tag/backend)

## Written by

[Carlos Armando Marcano Vargas](https://hashnode.com/@Carlos27)

@Carlos27 · Maturín, Venezuela

  
[View profile](https://hashnode.com/@Carlos27)

Backend developer

I am a backend developer from Venezuela. I enjoy writing tutorials for open source projects I using and find interesting. Mostly I write tutorials about Python, Go, and Rust.

## Responses 2

Markdown supported · ⌘↵ to post

[Bumi Boga Laksmi](https://hashnode.com/@bumibogalaksmi)

[Feb 22, 2024](https://hashnode.com/posts/building-a-proxy-server-in-rust-with-axum-rust/643de188f0a809de01e49dd0/comment/65d6bfe058be23b02050def3)

wow

[Matthias Goetzke](https://hashnode.com/@matthiag)

[Feb 20, 2024](https://hashnode.com/posts/building-a-proxy-server-in-rust-with-axum-rust/643de188f0a809de01e49dd0/comment/65d45e9af08cf765c2bac2cc)

Can you explain

../src/main.rs#L82 ?

At this moment you have already streamed all data back and forth, but you still return an empty body. Is it 100% guaranteed that no byte will be emitted due to this ? Usually I would expect the 'body' to be the response stream instead of using a bidirectional pump in the lower function

[Adebola Akinsomi](https://hashnode.com/@Adebola001)

[Apr 23, 2023](https://hashnode.com/posts/building-a-proxy-server-in-rust-with-axum-rust/643de188f0a809de01e49dd0/comment/6445a1f6994f853a1efed76f)

I do not have any knowledge in rust but I still find this interesting. The introductory part is nice👍🏻

[Carlos Armando Marcano Vargas](https://hashnode.com/@Carlos27)

[Apr 24, 2023](https://hashnode.com/posts/building-a-proxy-server-in-rust-with-axum-rust/643de188f0a809de01e49dd0/comment/6445a1f6994f853a1efed76f#reply-6445c709994f853a1efed944)

Thanks Adebola.
