ht 0.3.1
ht: ^0.3.1 copied to clipboard
Fetch-style HTTP types and protocol abstractions for Dart.
Next #
0.3.1 #
- Fixed the broken
Requestconstructor implementation shipped in0.3.0, restoring Fetch-style construction for native,dart:io, and js runtimes. - Fixed wrapped-request rebuilds so
Request(existing, RequestInit(body: ...))replaces the body without incorrectly depending on cloning the consumed upstream request body. - Added regression coverage for native,
dart:io, and jsRequestconstructor/body override semantics.
0.3.0 #
- BREAKING: Aligned
RequestandResponseconstructor/factory parameter semantics with Fetch/Web by introducingRequestInitandResponseInit. - BREAKING: Reworked request/response convenience constructors to use web-aligned positional body/init argument order.
- BREAKING:
Requestnow usesRequestInputfor string/Uri/Requestconstruction, and request metadata now follows Fetch-style inheritance and override rules. - BREAKING:
BodyMixinwas replaced by a first-classBodytype, andRequest.body/Response.bodynow exposeBody?. - BREAKING:
Headers,Blob,Request,Response, andURLSearchParamsnow resolve through platform-specific native/io/js implementations. - BREAKING: Removed older copy-first request/response convenience APIs that no longer matched Fetch/Web semantics.
- Added runtime-backed host adapters for:
Requeston js anddart:ioResponseon js anddart:ioHeaderson js anddart:ioBlobon js anddart:ioURLSearchParamson js
- Added native
FormDataparsing forapplication/x-www-form-urlencodedandmultipart/form-data. - Added native
FormData.encodeMultipart()returningEncodedFormData, with stream, content type, content length, and header application helpers. - Added stream tee and web stream bridge internals to support cloning and host interop without eager body materialization.
- Added browser and
dart:iocoverage for host-backed fetch behavior and multipart parsing edge cases.
0.2.0 #
- BREAKING: Reworked
Blobto ablock-backed implementation and removed synchronousBlob.copyBytes(). - Added direct
Blob<->block.Blockcompatibility (Blobnow implementsBlock). - BREAKING:
Blob.slicenow follows Web Blob semantics (negative indexes are resolved from the end). - BREAKING:
FormData.encodeMultipart()now returns a stream-firstMultipartBody, andMultipartBody.bytesis now async methodbytes(). - Added stream-first
MultipartBodywithstream,contentLength,contentType, and asyncbytes(). - Added
BodyInitsupport forpackage:blockBlockvalues inRequestandResponse.
0.1.0 #
- Rebuilt the package as a fetch-first HTTP type layer.
- Added core protocol types:
HttpMethod,HttpStatus,HttpVersion,MimeType. - Added fetch primitives:
Request,Response,Headers,URLSearchParams,Blob,File,FormData. - Added CI workflow and runnable
example/main.dart. - Upgraded SDK and dependencies to current stable constraints.
- Expanded tests to stabilize API behavior and edge-case contracts.
0.0.0 #
- Initial release.