View definition

func ContentTypeByExtension

Defined in github.com/labstack/echo/context.go

Description

ContentTypeByExtension returns the MIME type associated with the file based on its extension. It returns `application/octet-stream` incase MIME type is not found.

ContentTypeByExtension is referenced in 1 repository

github.com/labstack/echo