seltzer 0.4.0
seltzer: ^0.4.0 copied to clipboard
An elegant and rich cross-platform HTTP library for Dart.
Changelog #
0.4.0 #
- BREAKING
readAs<Bytes|String>to return aStreamandFutureinstead- This is due to the potentially streaming nature of network and file i/o
- For example, HTTP servers commonly send chunked responses
- Added
readAsBytesAllto auto-concatenate buffers together - Fix various strong-mode warnings
0.3.0 #
- Use
WebSocketChannelas the backing implementation for sockets - Replace
sendXandclosemethods to returnvoidinstead ofFuture
0.2.4-alpha #
- Added
ReplaySeltzerHttpandSeltzerHttpRecorderfor testing
0.2.3-alpha #
- Added
SeltzerSocketClosedEventwith information why close occurred - Rename the
Serverimplementations toVmsince they work on Flutter - Simplified how to extend/transform HTTP clients
- Removed
CannedSeltzerHttp; to be re-added/re-worked by 0.3
0.2.2-alpha #
- Consolidated interfaces of
SeltzerMessageandSeltzerHttpResponse- Both support synchronous
readAsStringandreadAsBytes
- Both support synchronous
- Fixed various strong mode warnings related to type inference
- Moved "echo" servers from bin/ to tool/ (implementation detail)
0.2.0-alpha #
- Added
CannedHttpResponseand theplatform/testing.dartlibrary - Added response headers to
SeltzerHttpResponse