class MyResource < Typhoid::Resource
      self.parser = ->(body) { ... }
    end