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


Java Header類代碼示例

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


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

示例1: getUserIssues

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

示例2: getSitePhpErrorLogFlagSlot

import retrofit2.http.Header; //導入依賴的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

示例3: createOrUpdateByScope

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

示例4: createOrUpdateSourceControlSlot

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

示例5: recognizeWithAccessToken

import retrofit2.http.Header; //導入依賴的package包/類
@NonNull
@Headers({HEADER_ACCEPT, HEADER_CONTENT_TYPE, HEADER_USER_AGENT,})
@POST(API_PATH_RECOGNIZE)
Call<List<SpeechRecognitionResult>> recognizeWithAccessToken(
        @NonNull @Header("Authorization") String accessToken,
        @NonNull @Body RecognitionRequest request);
 
開發者ID:powdream,項目名稱:google-speech-api-android,代碼行數:7,代碼來源:SpeechApi.java

示例6: deleteDeployment

import retrofit2.http.Header; //導入依賴的package包/類
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.appservice.WebApps deleteDeployment" })
@HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployments/{id}", method = "DELETE", hasBody = true)
Observable<Response<ResponseBody>> deleteDeployment(@Path("resourceGroupName") String resourceGroupName, @Path("name") String name, @Path("id") String id, @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

示例7: beginCreateOrUpdate

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

示例8: list

import retrofit2.http.Header; //導入依賴的package包/類
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.resources.Resources list" })
@GET("subscriptions/{subscriptionId}/resources")
Observable<Response<ResponseBody>> list(@Path("subscriptionId") String subscriptionId, @Query("$filter") String filter, @Query("$expand") String expand, @Query("$top") Integer top, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
開發者ID:Azure,項目名稱:azure-libraries-for-java,代碼行數:4,代碼來源:ResourcesInner.java

示例9: getAssembly

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

示例10: GetRanks

import retrofit2.http.Header; //導入依賴的package包/類
@GET("/ranks/{type}/page/{page}/pageSize/{pageSize}")
Observable<BaseModel<BDData>> GetRanks(@Header("authorization") String token, @Path("type") String type, @Path("page") int page, @Path("pageSize") int pageSize);
 
開發者ID:mangestudio,項目名稱:GCSApp,代碼行數:3,代碼來源:ApiStores.java

示例11: list

import retrofit2.http.Header; //導入依賴的package包/類
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.graphrbac.ServicePrincipals list" })
@GET("{tenantID}/servicePrincipals")
Observable<Response<ResponseBody>> list(@Path("tenantID") String tenantID, @Query("$filter") String filter, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
 
開發者ID:Azure,項目名稱:azure-libraries-for-java,代碼行數:4,代碼來源:ServicePrincipalsInner.java

示例12: getSinglePagesFailure

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

示例13: list

import retrofit2.http.Header; //導入依賴的package包/類
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.compute.VirtualMachineRunCommands list" })
@GET("subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/runCommands")
Observable<Response<ResponseBody>> list(@Path("location") String location, @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,代碼來源:VirtualMachineRunCommandsInner.java

示例14: beginTerminate

import retrofit2.http.Header; //導入依賴的package包/類
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.Jobs beginTerminate" })
@POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/jobs/{jobName}/terminate")
Observable<Response<ResponseBody>> beginTerminate(@Path("resourceGroupName") String resourceGroupName, @Path("jobName") String jobName, @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,代碼來源:JobsInner.java

示例15: get

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


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