userver: USERVER_FILES_CONTENT_TYPE_MAP
Loading...
Searching...
No Matches
USERVER_FILES_CONTENT_TYPE_MAP

USERVER_FILES_CONTENT_TYPE_MAP Dynamic Config

Dynamic config for mapping extension files with HTTP header content type.

Schema:

# yaml
default:
.css: "text/css"
.gif: "image/gif"
.htm: "text/html"
.html: "text/html"
.jpeg: "image/jpeg"
.js: "application/javascript"
.json: "application/json"
.md: "text/markdown"
.png: "image/png"
.svg: "image/svg+xml"
__default__: "text/plain"
description: Dynamic config for mapping extension files with HTTP header content type.
schema:
type: object
properties:
__default__:
type: string
additionalProperties:
type: string

For a full list of dynamic configs see Dynamic config schemas list