XRetrofit | 极致模仿Retrofit 简化下载上传。
kandi X-RAY | XRetrofit Summary
kandi X-RAY | XRetrofit Summary
XRetrofit is a Java library. XRetrofit has no bugs, it has no vulnerabilities and it has low support. However XRetrofit build file is not available. You can download it from GitHub.
XRetrofit 是一个极致模仿Retrofit 的风格代码,代码没有Retrofit 复杂,简单易懂。. 支持get、post、put、delete 请求,这些使用都一样。 简化文件上传,跟下载 使用@DOWNLOAD 跟@UPLOAD 简化 post 表单请求跟JOSN请求。 支持转换器,如果需要Gson的转换器,可以去demo那边去复制 支持适配器,内置跟Retrofit的Call,当然了String可以替换任意的类型,跟Retrofit一样 没有内置Rxjava的适配器,如果需要,自己去demo那边复制。. Retrofit 属于运行时注解,通过动态代理生成一个代码 XRetrofit 属于编译时注解,通过APT生成代码,如果要学习APT,可以操作这篇文章《带你了解APT》点击传送门. 注意2个注解 @FORM 跟@Param 我们舍弃了Retrofit的 @Field 跟@FormUrlEncoded @FORM 替换了@FormUrlEncoded 来区分是否表单 @Param 替换了@Field , @Param 有个好处就是: 1、不管是表单请求还JSON请求,都是可以作为参数来传参 2、如果用来Json请求的话,他会作为json格式的最外层数据, 哎这个怎么解释呢。就是如果你用@Param("userId"),那么最终传参是. @Body 注解跟Retrofit 注解一样,拥有一个功能,那是转换器,在添加转换器的时候,我们会通过 @Body 注解,判断当前是什么类型,然后通过类型,进行转换你想要的数据。。 上面的那个实体类提交就是这个原理,判断是Object类型的话,然后将Object类型转换为JSON格式进行提交。 那么你就可以定义你们公司需要啥类型,做啥处理。反正你们自己想。.
XRetrofit 是一个极致模仿Retrofit 的风格代码,代码没有Retrofit 复杂,简单易懂。. 支持get、post、put、delete 请求,这些使用都一样。 简化文件上传,跟下载 使用@DOWNLOAD 跟@UPLOAD 简化 post 表单请求跟JOSN请求。 支持转换器,如果需要Gson的转换器,可以去demo那边去复制 支持适配器,内置跟Retrofit的Call,当然了String可以替换任意的类型,跟Retrofit一样 没有内置Rxjava的适配器,如果需要,自己去demo那边复制。. Retrofit 属于运行时注解,通过动态代理生成一个代码 XRetrofit 属于编译时注解,通过APT生成代码,如果要学习APT,可以操作这篇文章《带你了解APT》点击传送门. 注意2个注解 @FORM 跟@Param 我们舍弃了Retrofit的 @Field 跟@FormUrlEncoded @FORM 替换了@FormUrlEncoded 来区分是否表单 @Param 替换了@Field , @Param 有个好处就是: 1、不管是表单请求还JSON请求,都是可以作为参数来传参 2、如果用来Json请求的话,他会作为json格式的最外层数据, 哎这个怎么解释呢。就是如果你用@Param("userId"),那么最终传参是. @Body 注解跟Retrofit 注解一样,拥有一个功能,那是转换器,在添加转换器的时候,我们会通过 @Body 注解,判断当前是什么类型,然后通过类型,进行转换你想要的数据。。 上面的那个实体类提交就是这个原理,判断是Object类型的话,然后将Object类型转换为JSON格式进行提交。 那么你就可以定义你们公司需要啥类型,做啥处理。反正你们自己想。.
Support
Quality
Security
License
Reuse
Support
XRetrofit has a low active ecosystem.
It has 116 star(s) with 11 fork(s). There are 3 watchers for this library.
It had no major release in the last 12 months.
XRetrofit has no issues reported. There are no pull requests.
It has a neutral sentiment in the developer community.
The latest version of XRetrofit is 0.0.8
Quality
XRetrofit has no bugs reported.
Security
XRetrofit has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
License
XRetrofit does not have a standard license declared.
Check the repository for any license declaration and review the terms closely.
Without a license, all rights are reserved, and you cannot use the library in your applications.
Reuse
XRetrofit releases are available to install and integrate.
XRetrofit has no build file. You will be need to create the build yourself to build the component from source.
Installation instructions are not available. Examples and code snippets are available.
Top functions reviewed by kandi - BETA
kandi has reviewed XRetrofit and discovered the below as its top functions. This is intended to give you an instant insight into XRetrofit implemented functionality, and help decide if they suit your requirements.
- Send request
- Joint url
- Build headers
- Builds a request
- Process all annotations
- Add parameters
- Add statement to method
- Add method
- Postform
- Post json
- Handle GET 2
- On delete view
- On PUT
- Returns a Call adapter for the given return type
- Returns the request length
- Initialize
- Posts json to View
- Get call adapter for given return type
- Gets the source of the response
- Post JSON
- Handler for GET
- Set data
- On upload
- On download
- Convert download response body to object
- Writes the request body to the specified sink
Get all kandi verified functions for this library.
XRetrofit Key Features
No Key Features are available at this moment for XRetrofit.
XRetrofit Examples and Code Snippets
No Code Snippets are available at this moment for XRetrofit.
Community Discussions
No Community Discussions are available at this moment for XRetrofit.Refer to stack overflow page for discussions.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install XRetrofit
You can download it from GitHub.
You can use XRetrofit like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the XRetrofit component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
You can use XRetrofit like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the XRetrofit component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
For any new features, suggestions and bugs create an issue on GitHub.
If you have any questions check and ask questions on community page Stack Overflow .
Find more information at:
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page