File: response.rbs

package info (click to toggle)
ruby-oauth2 2.0.18-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,196 kB
  • sloc: ruby: 5,441; javascript: 529; sh: 4; makefile: 4
file content (18 lines) | stat: -rw-r--r-- 634 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module OAuth2
  class Response
    DEFAULT_OPTIONS: Hash[Symbol, untyped]

    def self.register_parser: (Symbol key, (Array[String] | String) mime_types) { (String) -> untyped } -> void

    def initialize: (untyped response, parse: Symbol?, snaky: bool?, snaky_hash_klass: untyped?, options: Hash[Symbol, untyped]?) -> void
    def headers: () -> Hash[untyped, untyped]
    def status: () -> Integer
    def body: () -> String
    def parsed: () -> untyped
    def content_type: () -> (String | nil)
    def parser: () -> (untyped | nil)

    attr_reader response: untyped
    attr_accessor options: Hash[Symbol, untyped]
  end
end