htsget-http

Crates.iohtsget-http
lib.rshtsget-http
version0.7.2
created_at2023-01-06 05:36:30.136246+00
updated_at2025-08-21 00:39:24.898714+00
descriptionCrate for handling HTTP in htsget-rs.
homepagehttps://github.com/umccr/htsget-rs/blob/main/htsget-http/README.md
repositoryhttps://github.com/umccr/htsget-rs
max_upload_size
id752093
size189,185
Marko Malenic (mmalenic)

documentation

https://github.com/umccr/htsget-rs/blob/main/htsget-http/README.md

README

htsget-http

MIT licensed Build Status

Framework independent code for handling HTTP in htsget-rs.

Overview

This crate handles all the framework independent code for htsget-rs, it:

  • Produces htsget-specific HTTP responses.
  • Converts query results to JSON HTTP responses.
  • Handles htsget client error reporting.
  • Uses htsget-search to calculate URL tickets and byte ranges.

Usage

There is no need to interact with this crate for running htsget-rs.

As a library

This crate is useful for implementing additional framework dependent versions of the htsget-rs server. For example, htsget-rs could be written using another framework such as warp. This crate provides functions like get, post and get_service_info_json for this purpose. These functions take query and endpoint information, and process it using htsget-search to return JSON HTTP responses.

Feature flags

This crate has the following features:

  • aws: used to enable S3 location functionality and any other AWS features.
  • url: used to enable Url location functionality.
  • experimental: used to enable experimental features that aren't necessarily part of the htsget spec, such as Crypt4GH support through C4GHStorage.

License

This project is licensed under the MIT license.

Commit count: 999

cargo fmt