module OwO
Overview
The entire OwO
What's This wrapper for the API.
In order to use it, you'll need to refer to OwO::WhatsThis
.
Defined in:
Constant Summary
-
API_URI =
"https://api.awau.moe"
-
API_URI
is a constant to the default OwO v1 API endpoint: https://api.awau.moe -
USER_AGENT =
"WhatsThisClient (https://github.com/whats-this/owocr, #{VERSION})"
-
USER_AGENT
is the default constant User-Agent header. The version is specified byVERSION
, which changes as the wrapper updates. -
VERSION =
"0.2.0"
-
The current version of the library.
Class Method Summary
-
.content_type(file : File)
The function guesses what Content-Type a file may have from its extension.
Class Method Detail
def self.content_type(file : File)
#
The function guesses what Content-Type a file may have from its extension. If the extension is unknown or non-existant, it will return "application/octet-stream".