form_data 1.0.0-nullsafety.0 copy "form_data: ^1.0.0-nullsafety.0" to clipboard
form_data: ^1.0.0-nullsafety.0 copied to clipboard

outdated

multipart/form-data builder for Dart aiming to be compatible with RFC 7578.

example/form_data.dart

import 'dart:io';

import 'package:form_data/form_data.dart';

void main() {
  var formData = FormData()
    ..add('field name', 'value')
    ..add('primitive types', 42)
    ..addBytes('my file', File(Platform.script.path).readAsBytesSync(),
        filename: 'form_data.dart');

  print(formData.contentType);
  print(formData.contentLength);
  print(formData.body);
}
1
likes
0
pub points
65%
popularity

Publisher

unverified uploader

multipart/form-data builder for Dart aiming to be compatible with RFC 7578.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on form_data