Skip to content

flutter-packagist/network

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

network

简介

基于dio封装多种请求方式
支持 post get put patch delete等请求方式 支持前后拦截器
提供json安全解析功能

引入

network:
    git:
      url: https://github.com/flutter-packagist/network.git

初始化

/// 初始网络请求模块
HttpRequest().init();

使用

get

HttpRequest().get("url", params: {}, callBack: (data){});

post

HttpRequest().post("url", params: {}, callBack: (data){});

License

The MIT License (MIT). Please see License File for more information.

About

基于dio封装多种请求方式, 支持restful

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages