emmett-framework / granian

A Rust HTTP server for Python applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enhancement: Add protocol to listen address

JacobCoffee opened this issue · comments

Background

When running other servers they prepend the address with http:// or https://.

With this, inside of the CLI, PyCharm, or vscode worse editors it allows you to click the link directly.

Ask

In

logger.info(f'Listening at: {self.bind_addr}:{self.bind_port}')
, update:

[INFO] Listening at: 127.0.0.1:8000

to

[INFO] Listening at: http(s)://127.0.0.1:8000

so that it may be clickable.

Why

This is just handy in development.