All Projects → MZCretin → HttpUrlConnectionUtilDemo

MZCretin / HttpUrlConnectionUtilDemo

Licence: other
写小demo的时候,用Android成熟的网络框架有些大炮打蚊子,所以用最简单的方式写了一个网络工具类,注意,这个只是工具类...

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to HttpUrlConnectionUtilDemo

fileutils
Golang file system utils such as copy files and directories
Stars: ✭ 19 (-38.71%)
Mutual labels:  utils
utils
Common utils used by PSR-15 middlewares
Stars: ✭ 47 (+51.61%)
Mutual labels:  utils
skeletoid
Bootstrapping and Utils code for Android applications 🤖made at Mindera 💛
Stars: ✭ 24 (-22.58%)
Mutual labels:  utils
relay-helpers
Helpers to simplify and enhance Relay (https://facebook.github.io/relay/)
Stars: ✭ 19 (-38.71%)
Mutual labels:  utils
mUtils
JavaScript常用方法
Stars: ✭ 59 (+90.32%)
Mutual labels:  utils
snapdragon-util
Utilities for the snapdragon parser/compiler.
Stars: ✭ 17 (-45.16%)
Mutual labels:  utils
fat ecto
Query mechanism for Ecto
Stars: ✭ 20 (-35.48%)
Mutual labels:  utils
anyangdp-frame
基于mybatis,springboot,tk.mybatis等框架二次开发,实现crud,controller,service,dao。
Stars: ✭ 16 (-48.39%)
Mutual labels:  utils
Comet
iOS 项目的 Swift 基础库,提供常用组件、便利方法等。支持 Swift 3.x、Swift 4.x,iOS 8.0+
Stars: ✭ 49 (+58.06%)
Mutual labels:  utils
utils
General serverless utilities
Stars: ✭ 30 (-3.23%)
Mutual labels:  utils
GoGPUtils
Enhance productivity and avoid to reinvent the wheel every time that you start a Go project
Stars: ✭ 29 (-6.45%)
Mutual labels:  utils
wx-tool
微信小程序工具类
Stars: ✭ 31 (+0%)
Mutual labels:  utils
perl-scripts
A nice collection of day-to-day Perl scripts.
Stars: ✭ 92 (+196.77%)
Mutual labels:  utils
XinFramework
Android 快速开发框架 总结以往开发结合三方项目 不断更新
Stars: ✭ 21 (-32.26%)
Mutual labels:  utils
react-semantic-render
Semantic helper components for rendering content with React.
Stars: ✭ 13 (-58.06%)
Mutual labels:  utils
PowerUp
⚡ Decompilation Tools and High Productivity Utilities ⚡
Stars: ✭ 1,526 (+4822.58%)
Mutual labels:  utils
deep utils
An open-source toolkit which is full of handy functions, including the most used models and utilities for deep-learning practitioners!
Stars: ✭ 73 (+135.48%)
Mutual labels:  utils
vue-functional-data-merge
Vue.js util for intelligently merging data passed to functional components.
Stars: ✭ 100 (+222.58%)
Mutual labels:  utils
JavaBaseUtils
Java常用工具类包
Stars: ✭ 22 (-29.03%)
Mutual labels:  utils
exfatprogs
exFAT filesystem userspace utilities
Stars: ✭ 26 (-16.13%)
Mutual labels:  utils

HttpUrlConnectionUtilDemo

一个自己封装的用HttpUrlConnection请求的网络工具类,但只适合新手研究或者做些小demo用下, 毕竟现在对于Android开发的网络框架有很多,而且很好很强大。

目前支持的功能:

1、GET,POST请求

2、支持返回String,Byte[]数组,以及自定义的Model类

3、请求的回调已处理过,现在的回调在UI线程,所以可以直接更新UI

同样的,如果写demo啥的,可以按照以下方式依赖进项目:

allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}
	dependencies {
	        compile 'com.github.MZCretin:HttpUrlConnectionUtilDemo:v1.0'
	}

后面如果有需要,我会加上下载文件的方法。

如果有啥问题,欢迎交流:

792075058

[email protected]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].