oaspec/util/http
Values
pub fn status_code_suffix(code: String) -> String
Shared HTTP status code utilities for code generation. Get a human-readable suffix for a given HTTP status code. Used to build anonymous type names like “ListPetsResponseOk”.
pub fn status_code_to_int_pattern(code: String) -> String
Convert a status code string to an integer pattern for case matching. The “default” status maps to “_” (catch-all).