Crate htsget_http

Source

Structs§

Config
Simplified config.
Htsget
PostRequest
A struct to represent a POST request according to the HtsGet specification. It implements Deserialize to make it more ergonomic. Each PostRequest can contain several regions.
Region
A struct that contains the data to quest for a specific region. It is only meant to be use alongside a PostRequest
ServiceInfo
A struct representing the information that should be present in a service-info response.
Type

Enums§

Endpoint
A enum to distinguish between the two endpoint defined in the HtsGet specification
HtsGetError
An error type that describes the errors specified in the HtsGet specification

Functions§

get
Gets a JSON response for a GET request. The GET request parameters must be in a HashMap. The “id” field is the only mandatory one. The rest can be consulted here
get_service_info_json
match_format
Get the format from the string
post
Gets a response in JSON for a POST request. The parameters can be consulted here

Type Aliases§

Result