Cargo Features

isahc = { version = "1.7.2", default-features = false, features = ["cookies", "http2", "json", "nightly", "psl", "spnego", "static-curl", "static-ssl", "text-decoding", "unstable-interceptors"] }
default = http2, static-curl, text-decoding

These default features are set whenever isahc is added without default-features = false somewhere in the dependency tree.

cookies = httpdate

Affects config::Configurable.cookie_jar, isahc::cookies, response::ResponseExt.cookie_jar

http2 default

Enables http2 of curl

json = serde, serde_json

Affects response::ReadResponseExt.json, response::AsyncReadResponseExt.json, response::JsonFuture

psl = httpdate, parking_lot, publicsuffix

Enables spnego of curl-sys

static-curl default

Enables static-curl of curl


Enables static-ssl of curl

text-decoding default = encoding_rs, mime

Affects response::ReadResponseExt.text, response::AsyncReadResponseExt.text


Affects isahc::interceptor

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

serde_json json?
encoding_rs text-decoding
mime text-decoding
parking_lot psl?

Enables parking_lot >=0.9.0, <0.12.0

publicsuffix psl?
serde json?
httpdate cookies? psl?