Sha256: ccb6a80c12d7eae844a78c00beaddd18438a675785f7d258233ef837f0c0f605

Contents?: true

Size: 394 Bytes

Versions: 1

Compression:

Stored size: 394 Bytes

Contents

:call-seq:
  maybe_convert_extension(ext) -> string

Given a MIME type or file extension, return either a MIME type or, if
none is found, the input unchanged.

    >> maybe_convert_extension('json')
    => 'application/json'

    >> maybe_convert_extension('unknown')
    => 'unknown'

    >> maybe_convert_extension('application/xml')
    => 'application/xml'

[Parameters:]

  - ext (String)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rest-man-1.1.0 _doc/lib/restman/request/maybe_convert_extension.rdoc