Skip to content

Can starlette route to a unix domain socket? #2150

Answered by alex-oleshkevich
deleted asked this question in Q&A
Discussion options

You must be logged in to vote

Starlette is a web framework, not a server. Thus, it cannot be bound to Unix or TCP socket. You should use a dedicated server (like uvicorn for HTTP). For example, such a server can bind to the Unix socket and then route requests to Starlette.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Kludex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants