當前位置: 首頁>>代碼示例>>Java>>正文


Java Headers類代碼示例

本文整理匯總了Java中retrofit2.http.Headers的典型用法代碼示例。如果您正苦於以下問題:Java Headers類的具體用法?Java Headers怎麽用?Java Headers使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


Headers類屬於retrofit2.http包,在下文中一共展示了Headers類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getHomeTabs

import retrofit2.http.Headers; //導入依賴的package包/類
/**
 * 獲取首頁tabs
 *
 * @return
 */
@Headers({"Domain-Name: tabs"})
@GET("/neihan/service/tabs/?essence=1&iid=14204866276&device_id=38616036346&ac=wifi&channel=tengxun&aid=7&app_name=joke_essay&version_code=651&version_name=6.5.1&device_platform=android&ssmix=a&device_type=HUAWEI+C8818&device_brand=Huawei&os_api=19&os_version=4.4.4&uuid=A00000599C2C37&openudid=36459bf17f34022b&manifest_version_code=651&resolution=720*1280&dpi=320&update_version_code=6512")
Observable<BaseJson<ArrayList<HomeTabBean>>> getHomeTabs(
        @Query("essence") String essence,
        @Query("iid") String iid,
        @Query("device_id") String device_id,
        @Query("ac") String ac,
        @Query("channel") String channel,
        @Query("aid") String aid,
        @Query("app_name") String app_name,
        @Query("version_code") String version_code,
        @Query("ssmix") String ssmix,
        @Query("device_platform") String device_platform,
        @Query("device_type") String device_type,
        @Query("device_brand") String device_brand,
        @Query("os_api") String os_api,
        @Query("os_version") String os_version,
        @Query("uuid") String uuid,
        @Query("openudid") String openudid,
        @Query("manifest_version_code") String manifest_version_code,
        @Query("resolution") String resolution,
        @Query("dpi") String dpi,
        @Query("update_version_code") String update_version_code
);
 
開發者ID:devzwy,項目名稱:NeiHanDuanZiTV,代碼行數:30,代碼來源:CommonService.java

示例2: getRepoIssues

import retrofit2.http.Headers; //導入依賴的package包/類
@NonNull @GET("repos/{owner}/{repo}/issues")
@Headers("Accept: application/vnd.github.html,application/vnd.github.VERSION.raw")
Observable<Response<ArrayList<Issue>>> getRepoIssues(
        @Header("forceNetWork") boolean forceNetWork,
        @Path("owner") String owner,
        @Path("repo") String repo,
        @Query("state") String state,
        @Query("sort") String sort,
        @Query("direction") String direction,
        @Query("page") int page
);
 
開發者ID:ThirtyDegreesRay,項目名稱:OpenHub,代碼行數:12,代碼來源:IssueService.java

示例3: getIssueEvents

import retrofit2.http.Headers; //導入依賴的package包/類
@NonNull @GET("repos/{owner}/{repo}/issues/{issueNumber}/events")
@Headers("Accept: application/vnd.github.html")
Observable<Response<ArrayList<IssueEvent>>> getIssueEvents(
        @Header("forceNetWork") boolean forceNetWork,
        @Path("owner") String owner,
        @Path("repo") String repo,
        @Path("issueNumber") int issueNumber,
        @Query("page") int page
);
 
開發者ID:ThirtyDegreesRay,項目名稱:OpenHub,代碼行數:10,代碼來源:IssueService.java

示例4: createOrUpdate

import retrofit2.http.Headers; //導入依賴的package包/類
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.resources.Deployments createOrUpdate" })
@PUT("subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}")
Observable<Response<ResponseBody>> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("deploymentName") String deploymentName, @Path("subscriptionId") String subscriptionId, @Body DeploymentInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
開發者ID:Azure,項目名稱:azure-libraries-for-java,代碼行數:4,代碼來源:DeploymentsInner.java

示例5: listNext

import retrofit2.http.Headers; //導入依賴的package包/類
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.servicefabric.Clusters listNext" })
@GET
Observable<Response<ResponseBody>> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
開發者ID:Azure,項目名稱:azure-libraries-for-java,代碼行數:4,代碼來源:ClustersInner.java

示例6: createOrUpdate

import retrofit2.http.Headers; //導入依賴的package包/類
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.AppServiceEnvironments createOrUpdate" })
@PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}")
Observable<Response<ResponseBody>> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Body AppServiceEnvironmentResourceInner hostingEnvironmentEnvelope, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
開發者ID:Azure,項目名稱:azure-libraries-for-java,代碼行數:4,代碼來源:AppServiceEnvironmentsInner.java

示例7: delete

import retrofit2.http.Headers; //導入依賴的package包/類
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.devtestlab.Users delete" })
@HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{name}", method = "DELETE", hasBody = true)
Observable<Response<ResponseBody>> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("labName") String labName, @Path("name") String name, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
開發者ID:Azure,項目名稱:azure-libraries-for-java,代碼行數:4,代碼來源:UsersInner.java

示例8: delete

import retrofit2.http.Headers; //導入依賴的package包/類
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datalake.store.Accounts delete" })
@HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{name}", method = "DELETE", hasBody = true)
Observable<Response<ResponseBody>> delete(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
開發者ID:Azure,項目名稱:azure-libraries-for-java,代碼行數:4,代碼來源:AccountsImpl.java

示例9: listSchemasNext

import retrofit2.http.Headers; //導入依賴的package包/類
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.datalake.analytics.Catalogs listSchemasNext" })
@GET
Observable<Response<ResponseBody>> listSchemasNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
開發者ID:Azure,項目名稱:azure-libraries-for-java,代碼行數:4,代碼來源:CatalogsImpl.java

示例10: listBySubscriptionNext

import retrofit2.http.Headers; //導入依賴的package包/類
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.logic.Workflows listBySubscriptionNext" })
@GET
Observable<Response<ResponseBody>> listBySubscriptionNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
開發者ID:Azure,項目名稱:azure-libraries-for-java,代碼行數:4,代碼來源:WorkflowsInner.java

示例11: deleteAtResourceLevel

import retrofit2.http.Headers; //導入依賴的package包/類
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.locks.ManagementLocks deleteAtResourceLevel" })
@HTTP(path = "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}", method = "DELETE", hasBody = true)
Observable<Response<ResponseBody>> deleteAtResourceLevel(@Path("resourceGroupName") String resourceGroupName, @Path("resourceProviderNamespace") String resourceProviderNamespace, @Path(value = "parentResourcePath", encoded = true) String parentResourcePath, @Path(value = "resourceType", encoded = true) String resourceType, @Path("resourceName") String resourceName, @Path("lockName") String lockName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
開發者ID:Azure,項目名稱:azure-libraries-for-java,代碼行數:4,代碼來源:ManagementLocksInner.java

示例12: getMultiplePagesRetryFirstNext

import retrofit2.http.Headers; //導入依賴的package包/類
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: fixtures.paging.Pagings getMultiplePagesRetryFirstNext" })
@GET
Observable<Response<ResponseBody>> getMultiplePagesRetryFirstNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
開發者ID:Azure,項目名稱:autorest.java,代碼行數:4,代碼來源:PagingsInner.java

示例13: update

import retrofit2.http.Headers; //導入依賴的package包/類
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.streamanalytics.Outputs update" })
@PATCH("subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/outputs/{outputName}")
Observable<Response<ResponseBody>> update(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("jobName") String jobName, @Path("outputName") String outputName, @Body OutputInner output, @Header("If-Match") String ifMatch, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
開發者ID:Azure,項目名稱:azure-libraries-for-java,代碼行數:4,代碼來源:OutputsInner.java

示例14: getSitePhpErrorLogFlagSlot

import retrofit2.http.Headers; //導入依賴的package包/類
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.WebApps getSitePhpErrorLogFlagSlot" })
@GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/phplogging")
Observable<Response<ResponseBody>> getSitePhpErrorLogFlagSlot(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("slot") String slot, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
開發者ID:Azure,項目名稱:azure-libraries-for-java,代碼行數:4,代碼來源:WebAppsInner.java

示例15: listNext

import retrofit2.http.Headers; //導入依賴的package包/類
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.billing.Operations listNext" })
@GET
Observable<Response<ResponseBody>> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
開發者ID:Azure,項目名稱:azure-libraries-for-java,代碼行數:4,代碼來源:OperationsInner.java


注:本文中的retrofit2.http.Headers類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。