[wpiutil] Add MIME type utility (#2608)

Co-authored-by: Zhiquan Yeo <zyeo8@bloomberg.net>
This commit is contained in:
Zhiquan Yeo
2020-07-23 13:00:47 -04:00
committed by GitHub
parent 23ba3ca19e
commit 1fee190fd0
2 changed files with 90 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2020 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
/*----------------------------------------------------------------------------*/
#ifndef WPIUTIL_WPI_MIMETYPES_H_
#define WPIUTIL_WPI_MIMETYPES_H_
#include "wpi/StringRef.h"
namespace wpi {
StringRef MimeTypeFromPath(StringRef path);
} // namespace wpi
#endif // WPIUTIL_WPI_MIMETYPES_H_