struct

Manifest

Inherits JSON::Serializable < Struct < Value < Object

Struct representing a native manifest. Reference: https://developer.chrome.com/docs/extensions/mv3/nativeMessaging/#native-messaging-host

Constructors

new(pull : JSON::PullParser)
Source
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)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

add_extension(extension_id : String)

Adds an extension to allowed origins.

Source
allowed_origins

The list of extensions allowed to communicate with the native application.

Source
description

The description of the native application.

Source
name

The name of the native application.

Source
path

The path to the native application.

Source
remove_extension(extension_id : String)

Removes an extension from allowed origins.

Source
type

The type of interface used to communicate with the native application.

Source