mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-04 00:00:37 -04:00
26 lines
446 B
Plaintext
26 lines
446 B
Plaintext
module HTTPX
|
|
class Buffer
|
|
extend Forwardable
|
|
|
|
include _ToS
|
|
include _ToStr
|
|
|
|
@buffer: String
|
|
|
|
attr_reader limit: Integer
|
|
|
|
def full?: () -> bool
|
|
def shift!: (Integer) -> void
|
|
|
|
# delegated
|
|
def <<: (string data) -> void
|
|
def empty?: () -> bool
|
|
def bytesize: () -> Integer
|
|
def clear: () -> void
|
|
def replace: (string) -> void
|
|
|
|
private
|
|
|
|
def initialize: (Integer limit) -> untyped
|
|
end
|
|
end |