struct

Crig::HttpClient::Part

Inherits Struct < Value < Object

Constructors

bytes(name : String, data : Bytes) : self
Source
new(name : String, content_kind : ContentKind, text_value : String | Nil = nil, binary_value : Bytes | Nil = nil, filename : String | Nil = nil, content_type : String | Nil = nil)
Source
text(name : String, value : String) : self
Source

Instance methods

binary_value
Source
content_kind
Source
content_type(content_type : String) : self
Source
content_type
Source
filename(filename : String) : self
Source
filename
Source
get_content_type

ameba:disable Naming/AccessorMethodName

Source
get_filename

ameba:disable Naming/AccessorMethodName

Source
name
Source
text_value
Source

Nested types