Skip to content

Conditional Request Header

This doc details what emitters will generate for conditional request header

If-Match and If-None-Match

model Response {
name: string;
}
@get
op get(
/** The request should only proceed if an entity matches this string. */
@header("If-Match")
ifMatch?: string,
/** The request should only proceed if no entity matches this string. */
@header("If-None-Match")
ifNoneMatch?: string,
): Response;
from azure.core import MatchConditions
def get(self, *, etag: Optional[str] = None, match_condition: Optional[MatchConditions] = None) -> Response: