File: buffer.rbs

package info (click to toggle)
ruby-httpx 1.7.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,816 kB
  • sloc: ruby: 12,209; makefile: 4
file content (23 lines) | stat: -rw-r--r-- 443 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module HTTPX
  class Response::Buffer
    attr_reader buffer: StringIO | Tempfile

    @threshold_size: Integer
    @bytesize: Integer
    @encoding: Encoding

    def initialize: (threshold_size: Integer, ?bytesize: Integer, ?encoding: Encoding) -> void

    def size: () -> Integer

    def write: (String chunk) -> Integer

    def to_s: () -> String

    def close: () -> void

    private

    def try_upgrade_buffer: () -> void
  end
end