form_data 0.0.1 copy "form_data: ^0.0.1" to clipboard
form_data: ^0.0.1 copied to clipboard

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)
    ..addFile('my file', File(Platform.script.path).readAsBytesSync(),
        filename: 'form_data.dart');

  print(formData.contentType);
  print(formData.contentLength);
  print(formData.body);
}
1
likes
40
points
12.3k
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on form_data