Method: Agoo::Server#add_mime
- Defined in:
- ext/agoo/server.c
#add_mime(suffix, type) ⇒ Object
call-seq: add_mime(suffix, type)
Adds a mime type by associating a type string with a suffix. This is used for static files.
896 897 898 899 900 901 |
# File 'ext/agoo/server.c', line 896
static VALUE
add_mime(VALUE self, VALUE suffix, VALUE type) {
mime_set(&((Server)DATA_PTR(self))->pages, StringValuePtr(suffix), StringValuePtr(type));
return Qnil;
}
|