Jacques Lecoq

Lecoq, born in Paris, was a French actor, mime and acting instructor. He is most famous for his methods on physical theatre, movement, and mime that he taught at the school he founded in Paris, L'École Internationale de Théâtre Jacques Lecoq from 1956 until his death in 1999.

The API

Lecoq is an easy-to-use MIME-type checker built by David Titarenco on top of the Play Framework. Here's how it works. Feel free to contribute, fork, or report issues!

Endpoint Response Doc
/ HTML This page!
/c/URL JSON If URL is omitted, redirect to index. Response has two states: OK and KO. The former is the non-error state that returns a response which looks like this:
{
  "status":"OK",
  "type":"text/html; charset=ISO-8859-1"
}
Or, in the case of an image:
{
  "status":"OK",
  "type":"image/jpeg"
}
MIME-type checking is valuable as we don't need to download a file in its entirety to verify its type. The error state returns a response which will look like so:
{
  "status":"KO",
  "err":"Illegal character in path at index 4: http]//oops.com"
}
Possible errors include malformed URLs, timeouts (if request takes > 5 seconds), or issues with network IO.
Lecoq uses the Access-Control-Allow-Origin: * header, so the JSON responses can be directly accessed by off-domain AJAX CORS calls.