GatewayConfig class

Configuration for the IPFS HTTP Gateway.

Constructors

GatewayConfig({bool enabled = false, int port = 8080, String address = '0.0.0.0', bool writable = false, bool enableCache = true, int cacheSize = 104857600})
Creates a new GatewayConfig.
const
GatewayConfig.fromJson(Map<String, dynamic> json)
Creates a GatewayConfig from a JSON map.
factory

Properties

address String
The address the gateway listens on.
final
cacheSize int
The maximum size of the gateway cache in bytes.
final
enableCache bool
Whether to enable caching for gateway responses.
final
enabled bool
Whether the gateway is enabled.
final
hashCode int
The hash code for this object.
no setterinherited
port int
The port the gateway listens on.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
writable bool
Whether the gateway is writable (allows POST/PUT).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this configuration to a JSON map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited