struct Manifest
- Manifest
- Struct
- Value
- Object
Overview
Struct representing a native manifest. Reference: https://developer.chrome.com/docs/extensions/mv3/nativeMessaging/#native-messaging-host
Included Modules
- JSON::Serializable
Defined in:
manifest.crConstructors
- .new(pull : JSON::PullParser)
- .new(name : String = PROGRAM_NAME, description : String = PROGRAM_NAME, path : Path = Path[Process.executable_path.to_s], type : String = "stdio", allowed_origins : Set(String) = Set(String).new)
Instance Method Summary
-
#add_extension(extension_id : String)
Adds an extension to allowed origins.
-
#allowed_origins : Set(String)
The list of extensions allowed to communicate with the native application.
-
#description : String
The description of the native application.
-
#name : String
The name of the native application.
-
#path : Path
The path to the native application.
-
#remove_extension(extension_id : String)
Removes an extension from allowed origins.
-
#type : String
The type of interface used to communicate with the native application.
Constructor Detail
def self.new(name : String = PROGRAM_NAME, description : String = PROGRAM_NAME, path : Path = Path[Process.executable_path.to_s], type : String = "stdio", allowed_origins : Set(String) = Set(String).new)
#
Instance Method Detail
def allowed_origins : Set(String)
#
The list of extensions allowed to communicate with the native application.