schttp 5.0.0-alpha.6 schttp: ^5.0.0-alpha.6 copied to clipboard
A simple HTTP client supporting a cache.
5.0.0-alpha.6 #
- Added
SCacheClient
- Removed
forceCache
andforceBinCache
; useSCacheClient
instead - Everything now uses
bom
to figure out the charset if it isn't provided directly - All
headers
given are now respected (HttpHeaders.set
instead ofHttpHeaders.add
) - The caching helpers now also get the
headers
4.1.0 #
- Added support for custom
headers
togetBin
andgetBinUri
4.0.0 #
- A better API for
post
andpostUri
readCache
andwriteCache
now default totrue
ingetBin
andgetBinUri
- Missing
ttl
s now get passed onto theget cache
functions, so you can handle them yourself - Added
getPostCache
andsetPostCache
to also outsource the id generation - Adjusted the caching APIs to operate on
Uri
s instead ofString
s for urls - Changed the charset matching behavior to make more sense for most use-cases
3.3.0 #
getBinCache
,setBinCache
andforceBinCache
for opt-in binary cachingdefaultCharset
andforcedCharset
for better charset matching (useful for dealing with weird servers)
3.2.1 #
- Switched from
dart:io
touniversal_io
to support Web apps
3.2.0 #
- Added support for custom
headers
toget
andgetUri
3.1.0 #
- Added
forceCache
to force caching even though some library might not want you to
3.0.0 #
- Added support for Proxies and custom User Agents
- Made
getCache
andsetCache
named parameters instead of positional ones - Added
getBin
andgetBinUri
for binary data
2.0.0 #
- Renamed
get
togetUri
- Renamed
post
topostUri
- Added
get
- Added
post
1.1.0 #
- Made
getCache
andsetCache
non-nullable (if this breaks your code, your code's wrong) - Added readCache and writeCache parameters to disable caching dynamically
1.0.0-nullsafety.0 #
- Null-safety
0.2.0 #
- Support for using US-ASCII and Latin-1 when the server sends it.
0.1.0 #
- Initial release: copied from Amplessimus, can GET and POST text with caching