class

Sonarr::Model::HttpUri

Inherits Reference < Object

Constructors

from_json_object(pull : JSON::PullParser) : self

Builds an HttpUri from the object wire format the schema declares.

Source
from_uri_string(value : String) : self

Builds an HttpUri from a plain URL string, best-effort decomposing it into its component fields. A malformed URL never raises: the component fields are simply left nil while full_uri still holds the raw value.

Source
new(full_uri : String | Nil = nil, scheme : String | Nil = nil, host : String | Nil = nil, port : Int32 | Nil = nil, path : String | Nil = nil, query : String | Nil = nil, fragment : String | Nil = nil)
Source
new(pull : JSON::PullParser) : self
Source

Instance methods

fragment
Source
fragment=(fragment : String | Nil)
Source
full_uri
Source
full_uri=(full_uri : String | Nil)
Source
host
Source
host=(host : String | Nil)
Source
path
Source
path=(path : String | Nil)
Source
port
Source
port=(port : Int32 | Nil)
Source
query
Source
query=(query : String | Nil)
Source
scheme
Source
scheme=(scheme : String | Nil)
Source
to_json(json : JSON::Builder) : Nil

Emits the string form so values round-trip with Sonarr (which expects a bare URL string). A nil full_uri serializes as JSON null.

Source