23 releases

0.5.2 Feb 18, 2025
0.5.1 Oct 17, 2024
0.4.16 Sep 6, 2024
0.4.14 May 22, 2024
0.1.4 Feb 24, 2023

#275 in Network programming

Download history 4/week @ 2024-11-13 18/week @ 2024-11-20 17/week @ 2024-11-27 24/week @ 2024-12-04 48/week @ 2024-12-11 3/week @ 2024-12-18 2/week @ 2025-02-05 91/week @ 2025-02-12 48/week @ 2025-02-19 6/week @ 2025-02-26

147 downloads per month
Used in 3 crates

MIT license

330KB
8K SLoC

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.

Dependencies

~31–54MB
~1M SLoC