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

outdated

Form data parser and builder for Dart

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)
    ..addFile('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

Form data parser and builder for Dart

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on form_data