﻿# Keep HTTP method discovery separate from model features

HTTP method discovery, browser permission and model feature support need separate evidence.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/guide-http-options-capabilities/
Language: en

A client discovers that an inference endpoint accepts POST and concludes that it supports images, tool calls and streaming. The inference is too broad. HTTP method discovery describes communication with a resource; model capabilities belong to a separate contract. Mixing both makes a conformance test pass while the first real application request fails.

## Ask the method-level question

An OPTIONS request can obtain communication options associated with its target. An Allow field describes supported methods in the applicable context. Neither enumerates the semantic parameters of a generation body. The answer may also come from a gateway configured independently of the model application. Record the target URI and origin of the response before treating the result as evidence about a deployed backend.

## Separate browser access from model behavior

Browser cross-origin preflight uses OPTIONS with additional request fields and evaluates a distinct set of response fields. A successful preflight says that the browser is permitted to make the contemplated request under the returned policy. It does not mean the model supports that request's content. Likewise, a command-line client can successfully call an API that a browser cannot access because the browser enforces an additional policy. Diagnose these outcomes on their respective layers.

## Get features from the documented catalog

Use the service's documented model metadata and parameter schema to determine support for modalities, output structures or tools. Preserve the metadata revision or retrieval time in a conformance report. A catalog can describe a capability without guaranteeing that every route currently has capacity. For a provider-facing adapter, distinguish what the selected implementation accepts from what a common gateway normalizes. A generic method list cannot resolve either question.

## Construct focused acceptance checks

Use a small synthetic POST to validate one promised feature at a time. Test both acceptance and an unsupported alternative so silent parameter dropping is visible. Keep OPTIONS tests in the suite for method handling, and browser preflight tests where browser access is part of the product. A structured error response is helpful when a method or parameter is rejected, but its existence does not convert method discovery into a model-capability registry.

When a browser preflight result is cached, a subsequent request may occur without a new OPTIONS exchange. A packet trace that shows no fresh preflight therefore cannot by itself prove that browser policy was bypassed. Reproduce with controlled browser state and keep that test independent of model feature validation.

## Publish claims at the right scope

A useful report can state that a route handles a method, a browser policy permits specified origins, and a particular model request completed under observed settings. Those are separate findings with separate evidence. Do not label all of them simply compatible. If the backend or model changes, rerun feature checks rather than relying on an unchanged gateway OPTIONS response. Acceptance is an explicit mapping from each claimed capability to its source of truth and a bounded execution test, with no assumption that transport discovery predicts generation quality.

## Primary references

[HTTP Semantics](https://www.rfc-editor.org/rfc/rfc9110.html). Defines OPTIONS, method semantics and Allow.

[Problem Details for HTTP APIs](https://www.rfc-editor.org/rfc/rfc9457.html). Supports distinct machine-readable method and application errors.

[Fetch Standard: CORS protocol](https://fetch.spec.whatwg.org/#http-cors-protocol). Defines browser CORS preflight independently of model feature support.

Related reading: [Unsupported inference parameters: rejection, ignoring and the contract](/journal/provider-unsupported-parameter-policy/); [Golden inference API fixtures: test the contract rather than prose](/journal/provider-golden-contract-fixtures/).
