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(
@header("If-Match")
@doc("The request should only proceed if an entity matches this string.")
ifMatch?: string,
@header("If-None-Match")
@doc("The request should only proceed if no entity matches this string.")
ifNoneMatch?: string,
): Response;