# HTTP REST API server best practice?

**URL:** <https://discourse.julialang.org/t/http-rest-api-server-best-practice/23675>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [April 30, 2019, 12:14am UTC](https://discourse.julialang.org/t/http-rest-api-server-best-practice/23675 "2019-04-30T00:14:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [April 30, 2019, 12:14am UTC](https://discourse.julialang.org/t/http-rest-api-server-best-practice/23675/1 "2019-04-30T00:14:30Z")

</div>

Hi all,  
I’m trying to write a toy homeserver for [Matrix](https://matrix.org/blog/home.html#about) much similar to their reference realization of the protocol of [Synapse](http://github.com/matrix-org/synapse/) which is in Python.

The setup consists of Nginx reverse proxy from `port 443` to the HTTP server. The clients use `POST` and `GET` etc. to interact with `JSON` payloads. I’m looking at [Mux.jl](https://github.com/JuliaWeb/Mux.jl) because [HttpServer.jl](https://github.com/JuliaWeb/HttpServer.jl) is deprecated. Is this what I want for the server-client API?

---

<div class="post-metadata">

**Author:** ![zgornel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zgornel/32/217487_2.png) [@zgornel](https://discourse.julialang.org/u/zgornel)\
**Post date:** [April 30, 2019, 8:48am UTC](https://discourse.julialang.org/t/http-rest-api-server-best-practice/23675/2 "2019-04-30T08:48:23Z")

</div>

Either `Mux.jl` or `HTTP.jl` (the latter has also rest examples ;))
