mx_http 0.0.3 copy "mx_http: ^0.0.3" to clipboard
mx_http: ^0.0.3 copied to clipboard

http connection tool, and supporting automatic generation of request entity code.

example/mx_http_example.dart

import 'package:mx_http/mx_http.dart';

import 'request.dart';

void main() async {
  // 初始化http請求工具
  final httpUtil = HttpUtil();

  // 初始化api接口實體
  final request = ExRequest();

  // 發出http api請求, 並取得響應
  final response = await request
      .exApi(
        'apiPath',
        'hi',
        'bToken',
        'cBody',
        MultipartFile.fromString('value'),
        check: 'check',
        opId: 'opId',
        opId2: ['opId2'],
      )
      .connect(httpUtil)
      .then((value) => value.getString());
}
0
likes
0
pub points
59%
popularity

Publisher

unverified uploader

http connection tool, and supporting automatic generation of request entity code.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analyzer, build, build_runner, built_collection, code_builder, cookie_jar, dart_style, dio, dio_cookie_manager, meta, path, source_gen

More

Packages that depend on mx_http