Headers Interface

Implements

public interface Headers
implements Annotation

Annotation to annotate list of static headers sent to a REST endpoint.

Headers are comma separated strings, with each in the format of "header name: header value1,header value2".

Examples:

@Headers({"Content-Type: application/json; charset=utf-8", "accept-language: en-US"})
 @Post("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/"
     + "hubs/{hubName}/images/getEntityTypeImageUploadUrl")
 void getUploadUrlForEntityType(@PathParam("resourceGroupName") String resourceGroupName,
     @PathParam("hubName") String hubName,
     @PathParam("subscriptionId") String subscriptionId,
     @BodyParam("application/json") RequestBody parameters);

Method Summary

Modifier and Type Method and Description
abstract String[] value()

List of static headers.

Method Details

value

public abstract String[] value()

List of static headers.

Returns:

List of static headers.

Applies to