
Http
小小平不平凡
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Okhttp3中设置请求头的两种方式区别
代码:builder.addInterceptor(new Interceptor() {//添加请求头参数 @Override public Response intercept(Chain chain) throws IOException { Request original = chain.request(); Request request = original.newBuilder() .header("Cook原创 2020-12-04 16:44:52 · 5265 阅读 · 0 评论 -
MediaType介绍
MediaType媒体类型:决定浏览器将以什么形式、什么编码对资源进行解析Content-Type:也属于MediaType媒体类型,主要用于在请求头中指定资源的MediaType一、MediaType类型类型描述text/htmlHTML格式text/plain纯文本格式text/xmlXML格式image/gifgif图片格式image/jpegjpg图片格式image/pngpng图片格式application/xhtml+xm原创 2020-12-04 15:41:00 · 35654 阅读 · 0 评论