Creating OPTIONS/HEAD Requests with `HttpApiEndpoint`

Hi, why can't I create OPTIONS/HEAD requests with HttpApiEndpoint? Is there another way?

const Greetings = HttpApiGroup.make("Greetings")
  .annotate(OpenApi.Description, "Informative description")
  .add(
    HttpApiEndpoint.get("hello")`/` // <-- this can't be .options() or .head()
      .annotate(OpenApi.Description, "The Hello World endpoint")
      .addSuccess(Schema.String)
      .addError(Schema.String),
  );
Was this page helpful?