Remove incorrect HTTPie dependency from documentation

HTTPie was listed as a dependency but the application actually uses libsoup3 from GNOME Platform. Updated README to reflect correct dependencies and removed installation instructions for HTTPie. Also corrected code comments to reference libsoup3 instead of HTTPie.
This commit is contained in:
Pavel Baksy 2025-12-26 02:09:01 +01:00
parent e8f8efbd09
commit 5fa104db69
3 changed files with 6 additions and 12 deletions

View File

@ -15,7 +15,7 @@ A modern HTTP client for GNOME, built with GTK 4 and libadwaita.
- GTK 4 - GTK 4
- libadwaita 1 - libadwaita 1
- Python 3 - Python 3
- HTTPie (http command) - libsoup3 (provided by GNOME Platform)
## Building ## Building
@ -27,12 +27,6 @@ sudo meson install -C builddir
## Usage ## Usage
Roster uses HTTPie as the backend for making HTTP requests. Ensure HTTPie is installed: Roster uses libsoup3 (from GNOME Platform) for making HTTP requests - no external dependencies required.
```bash Run Roster from your application menu or with the `roster` command.
pip install httpie
# or on Fedora
sudo dnf install httpie
```
Then run Roster from your application menu or with the `roster` command.

View File

@ -150,7 +150,7 @@ class HttpClient:
status_code = msg.get_status() status_code = msg.get_status()
status_text = msg.get_reason_phrase() status_text = msg.get_reason_phrase()
# Format headers like HTTPie output (HTTP/1.1 200 OK\nHeader: value\n...) # Format headers in HTTPie-style output (HTTP/1.1 200 OK\nHeader: value\n...)
headers_text = self._format_headers(msg, status_code, status_text) headers_text = self._format_headers(msg, status_code, status_text)
# Decode body with error handling # Decode body with error handling
@ -166,7 +166,7 @@ class HttpClient:
def _format_headers(self, msg: Soup.Message, status_code: int, status_text: str) -> str: def _format_headers(self, msg: Soup.Message, status_code: int, status_text: str) -> str:
""" """
Format response headers to match HTTPie output format. Format response headers in HTTPie-style output format.
Format: Format:
HTTP/1.1 200 OK HTTP/1.1 200 OK

View File

@ -48,7 +48,7 @@ class HttpResponse:
"""Represents an HTTP response.""" """Represents an HTTP response."""
status_code: int status_code: int
status_text: str # e.g., "OK" status_text: str # e.g., "OK"
headers: str # Raw header text from HTTPie headers: str # Raw header text from libsoup3
body: str # Raw body text body: str # Raw body text
response_time_ms: float response_time_ms: float