@@ -38,8 +38,7 @@ enum LogLevel {
3838}
3939
4040
41- # Log level to configure verbosity.
42- # @export_enum ain't working for ints yet (2023-03)
41+ ## Log level to configure verbosity.
4342@export var log_level := LogLevel.WARNING
4443
4544{{!--
@@ -57,9 +56,9 @@ var bee_client: HTTPClient:
5756 return bee_client
5857--}}
5958
60- # The host to connect to, with or without the protocol scheme.
61- # Eg: "gitea.com", "https://gitea.com"
62- # We toggle TLS accordingly to the provided scheme, if any.
59+ ## The host to connect to, with or without the protocol scheme.
60+ ## Eg: "gitea.com", "https://gitea.com"
61+ ## We toggle TLS accordingly to the provided scheme, if any.
6362@export var host := BEE_DEFAULT_HOST:
6463 set(value):
6564 if value.begins_with("https://"):
@@ -71,14 +70,14 @@ var bee_client: HTTPClient:
7170 host = value
7271
7372
74- # Port through which the connection will be established.
75- # Note : changing the host may change the port as well if the scheme was provided, see above.
73+ ## Port through which the connection will be established.
74+ ## NOTE : changing the host may change the port as well if the scheme was provided, see above.
7675@export var port := BEE_DEFAULT_PORT_HTTP
7776
7877
79- # Headers used as base for all requests made by Api instances using this config.
80- # Those are the lowest priority headers, and are merged with custom headers provided in the bee_request() method call
81- # as well as the headers override below, to compute the final, actually sent headers.
78+ ## Headers used as base for all requests made by Api instances using this config.
79+ ## Those are the lowest priority headers, and are merged with custom headers provided in the bee_request() method call
80+ ## as well as the headers override below, to compute the final, actually sent headers.
8281@export var headers_base := {
8382 # Stigmergy: everyone does what is left to do (like ants do)
8483 "User-Agent": "Stigmergiac/1.0 (Godot)",
@@ -88,30 +87,30 @@ var bee_client: HTTPClient:
8887}
8988
9089
91- # High-priority headers, they will always override other headers coming from the base above or the method call.
90+ ## High-priority headers, they will always override other headers coming from the base above or the method call.
9291@export var headers_override := {}
9392
9493
95- # Duration of sleep between poll() calls.
94+ ## Duration of sleep between poll() calls.
9695@export var polling_interval_ms := BEE_DEFAULT_POLLING_INTERVAL_MS # milliseconds
9796
9897
99- # Enable the Transport Security Layer (packet encryption, HTTPS)
98+ ## Enable the Transport Security Layer (packet encryption, HTTPS)
10099@export var tls_enabled := false:
101100 set(value):
102101 tls_enabled = value
103102 port = BEE_DEFAULT_PORT_HTTPS if tls_enabled else BEE_DEFAULT_PORT_HTTP
104103
105104
106- # You should preload your *.crt file (the whole chain) in here if you want TLS.
107- # I usually concatenate my /etc/ssl/certs/ca-certificates.crt and webserver certs here.
108- # Remember to add the *.crt file to the exports, if necessary.
105+ ## You should preload your *.crt file (the whole chain) in here if you want TLS.
106+ ## I usually concatenate my /etc/ssl/certs/ca-certificates.crt and webserver certs here.
107+ ## Remember to add the *.crt file to the exports, if necessary.
109108@export var trusted_chain: X509Certificate # only used if tls is enabled
110109@export var common_name_override := "" # for TLSOptions
111110
112111
113- # Dynamic accessor using the TLS properties above, but you may inject your own
114- # for example if you need to use TLSOptions.client_unsafe. Best not @export this.
112+ ## Dynamic accessor using the TLS properties above, but you may inject your own
113+ ## for example if you need to use TLSOptions.client_unsafe. Best not @export this.
115114var tls_options: TLSOptions:
116115 set(value):
117116 tls_options = value
@@ -164,7 +163,7 @@ func set_security_{{name}}(value: String):
164163
165164
166165{{ else }}
167- # → Skipped: not implemented in the gdscript templates. (contribs welcome)
166+ # → Skipped: not implemented in the gdscript templates. (contribs are welcome)
168167
169168
170169{{ /if }}
0 commit comments