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 aStream
andFuture
instead- This is due to the potentially streaming nature of network and file i/o
- For example, HTTP servers commonly send chunked responses
- Added
readAsBytesAll
to auto-concatenate buffers together - Fix various strong-mode warnings
0.3.0 #
- Use
WebSocketChannel
as the backing implementation for sockets - Replace
sendX
andclose
methods to returnvoid
instead ofFuture
0.2.4-alpha #
- Added
ReplaySeltzerHttp
andSeltzerHttpRecorder
for testing
0.2.3-alpha #
- Added
SeltzerSocketClosedEvent
with information why close occurred - Rename the
Server
implementations toVm
since 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
SeltzerMessage
andSeltzerHttpResponse
- Both support synchronous
readAsString
andreadAsBytes
- 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
CannedHttpResponse
and theplatform/testing.dart
library - Added response headers to
SeltzerHttpResponse