retrofit2.http.HeaderMap Java Examples
The following examples show how to use
retrofit2.http.HeaderMap.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DoorbellService.java From maoni with MIT License | 5 votes |
@Multipart @POST("applications/{id}/upload") Call<String[]> uploadLogs( @HeaderMap final Map<String, String> httpHeaders, @Path("id") final int applicationId, @Query("key") final String key, @Part("files[]\"; filename=\"logs.txt\" ") final RequestBody filename);
Example #2
Source File: DoorbellService.java From maoni with MIT License | 5 votes |
@Multipart @POST("applications/{id}/upload") Call<String[]> uploadScreenshot( @HeaderMap final Map<String, String> httpHeaders, @Path("id") final int applicationId, @Query("key") final String key, @Part("files[]\"; filename=\"screenshot.png\" ") final RequestBody filename);
Example #3
Source File: ExampleService.java From android with MIT License | 4 votes |
@GET public Call<ResponseBody> requestWithHeaderMap(@Url String url, @HeaderMap Map<String, String> header);
Example #4
Source File: IHttpGetApi.java From a with GNU General Public License v3.0 | 4 votes |
@GET Observable<Response<String>> get(@Url String url, @HeaderMap Map<String, String> headers);
Example #5
Source File: IHttpPostApi.java From MyBookshelf with GNU General Public License v3.0 | 4 votes |
@POST Observable<Response<String>> postJson(@Url String url, @Body RequestBody body, @HeaderMap Map<String, String> headers);
Example #6
Source File: DoorbellService.java From maoni with MIT License | 4 votes |
@POST("applications/{id}/submit") Call<ResponseBody> submitFeedbackForm( @HeaderMap final Map<String, String> httpHeaders, @Path("id") final int applicationId, @Query("key") final String key, @Body final DoorbellSubmitRequest request);
Example #7
Source File: DoorbellService.java From maoni with MIT License | 4 votes |
@POST("applications/{id}/open") Call<ResponseBody> openApplication( @HeaderMap final Map<String, String> httpHeaders, @Path("id") final int applicationId, @Query("key") final String key);
Example #8
Source File: ApiService.java From TestChat with Apache License 2.0 | 4 votes |
@Streaming @GET Call<ResponseBody> download(@Url String url, @HeaderMap Map<String,String> headerMap);
Example #9
Source File: IHttpPostApi.java From HaoReader with GNU General Public License v3.0 | 4 votes |
@FormUrlEncoded @POST Observable<Response<String>> searchBook(@Url String url, @FieldMap(encoded = true) Map<String, String> fieldMap, @HeaderMap Map<String, String> headers);
Example #10
Source File: IHttpGetApi.java From HaoReader with GNU General Public License v3.0 | 4 votes |
@GET Observable<Response<String>> searchBook(@Url String url, @QueryMap(encoded = true) Map<String, String> queryMap, @HeaderMap Map<String, String> headers);
Example #11
Source File: IHttpGetApi.java From HaoReader with GNU General Public License v3.0 | 4 votes |
@GET Observable<Response<String>> getWebContent(@Url String url, @HeaderMap Map<String, String> headers);
Example #12
Source File: ApiService.java From AndroidModulePattern with Apache License 2.0 | 4 votes |
/** * 流式下载,不加这个注解的话,会整个文件字节数组全部加载进内存,可能导致oom */ @Streaming @GET Call<ResponseBody> download(@Url String fileUrl, @HeaderMap Map<String, String> headers);
Example #13
Source File: RequestService.java From Collection-Android with MIT License | 4 votes |
@GET Observable<ResponseBody> getObservableWithQueryMapWithHeaders(@Url String url, @QueryMap Map<String, Object> map, @HeaderMap Map<String, String> header);
Example #14
Source File: RedditAPI.java From Infinity-For-Reddit with GNU Affero General Public License v3.0 | 4 votes |
@FormUrlEncoded @POST("/api/report") Call<String> report(@HeaderMap Map<String, String> headers, @FieldMap Map<String, String> params);
Example #15
Source File: RedditAPI.java From Infinity-For-Reddit with GNU Affero General Public License v3.0 | 4 votes |
@GET("/api/multi/multipath/") Call<String> getMultiRedditInfo(@HeaderMap Map<String, String> headers, @Query("multipath") String multipath);
Example #16
Source File: RedditAPI.java From Infinity-For-Reddit with GNU Affero General Public License v3.0 | 4 votes |
@DELETE("/api/multi/multipath") Call<String> deleteMultiReddit(@HeaderMap Map<String, String> headers, @Query("multipath") String multipath);
Example #17
Source File: RedditAPI.java From Infinity-For-Reddit with GNU Affero General Public License v3.0 | 4 votes |
@FormUrlEncoded @PUT("/api/multi/multipath") Call<String> updateMultiReddit(@HeaderMap Map<String, String> headers, @FieldMap Map<String, String> params);
Example #18
Source File: RedditAPI.java From Infinity-For-Reddit with GNU Affero General Public License v3.0 | 4 votes |
@FormUrlEncoded @POST("/api/multi/multipath") Call<String> createMultiReddit(@HeaderMap Map<String, String> headers, @FieldMap Map<String, String> params);
Example #19
Source File: RedditAPI.java From Infinity-For-Reddit with GNU Affero General Public License v3.0 | 4 votes |
@GET("{multipath}.json?raw_json=1") Call<String> getMultiRedditPostsOauth(@Path(value = "multipath", encoded = true) String multiPath, @Query("after") String after, @HeaderMap Map<String, String> headers);
Example #20
Source File: RedditAPI.java From Infinity-For-Reddit with GNU Affero General Public License v3.0 | 4 votes |
@GET("{multipath}.json?raw_json=1") Call<String> getMultiRedditPostsOauth(@Path(value = "multipath", encoded = true) String multiPath, @Query("after") String after, @Query("t") String sortTime, @HeaderMap Map<String, String> headers);
Example #21
Source File: RedditAPI.java From Infinity-For-Reddit with GNU Affero General Public License v3.0 | 4 votes |
@FormUrlEncoded @POST("/api/multi/favorite?raw_json=1&gilding_detail=1") Call<String> favoriteMultiReddit(@HeaderMap Map<String, String> headers, @FieldMap Map<String, String> params);
Example #22
Source File: RedditAPI.java From Infinity-For-Reddit with GNU Affero General Public License v3.0 | 4 votes |
@GET("/api/multi/mine") Call<String> getMyMultiReddits(@HeaderMap Map<String, String> headers);
Example #23
Source File: RedditAPI.java From Infinity-For-Reddit with GNU Affero General Public License v3.0 | 4 votes |
@FormUrlEncoded @POST("/api/favorite") Call<String> favoriteThing(@HeaderMap Map<String, String> headers, @FieldMap Map<String, String> params);
Example #24
Source File: RedditAPI.java From Infinity-For-Reddit with GNU Affero General Public License v3.0 | 4 votes |
@FormUrlEncoded @POST("/api/unhide") Call<String> unhide(@HeaderMap Map<String, String> headers, @FieldMap Map<String, String> params);
Example #25
Source File: RedditAPI.java From Infinity-For-Reddit with GNU Affero General Public License v3.0 | 4 votes |
@FormUrlEncoded @POST("/api/hide") Call<String> hide(@HeaderMap Map<String, String> headers, @FieldMap Map<String, String> params);
Example #26
Source File: RedditAPI.java From Infinity-For-Reddit with GNU Affero General Public License v3.0 | 4 votes |
@FormUrlEncoded @POST("/api/unsave") Call<String> unsave(@HeaderMap Map<String, String> headers, @FieldMap Map<String, String> params);
Example #27
Source File: RedditAPI.java From Infinity-For-Reddit with GNU Affero General Public License v3.0 | 4 votes |
@FormUrlEncoded @POST("/api/save") Call<String> save(@HeaderMap Map<String, String> headers, @FieldMap Map<String, String> params);
Example #28
Source File: RedditAPI.java From Infinity-For-Reddit with GNU Affero General Public License v3.0 | 4 votes |
@FormUrlEncoded @POST("/api/read_message") Call<String> readMessage(@HeaderMap Map<String, String> headers, @FieldMap Map<String, String> ids);
Example #29
Source File: RedditAPI.java From Infinity-For-Reddit with GNU Affero General Public License v3.0 | 4 votes |
@GET("/message/{where}.json?raw_json=1") Call<String> getMessages(@HeaderMap Map<String, String> headers, @Path("where") String where, @Query("after") String after);
Example #30
Source File: RedditAPI.java From Infinity-For-Reddit with GNU Affero General Public License v3.0 | 4 votes |
@FormUrlEncoded @POST("{subredditNamePrefixed}/api/selectflair") Call<String> selectFlair(@Path("subredditNamePrefixed") String subredditName, @HeaderMap Map<String, String> headers, @FieldMap Map<String, String> params);