- Add basic HTTP server implementation.
- Fix small strong-mode warning in http_response.dart
- 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
- Use
WebSocketChannel
as the backing implementation for sockets - Replace
sendX
andclose
methods to returnvoid
instead ofFuture
- Added
ReplaySeltzerHttp
andSeltzerHttpRecorder
for testing
- 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
- 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)
- Added
CannedHttpResponse
and theplatform/testing.dart
library - Added response headers to
SeltzerHttpResponse