We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 76a98c9 + fd6509f commit b0c7febCopy full SHA for b0c7feb
jupyter_server_proxy/config.py
@@ -79,8 +79,8 @@ def _default_path_info(self):
79
class ServerProcess(Configurable):
80
name = Unicode(help="Name of the server").tag(config=True)
81
82
- command = List(
83
- Unicode(),
+ command = Union(
+ [List(Unicode()), Callable()],
84
help="""
85
An optional list of strings that should be the full command to be executed.
86
The optional template arguments ``{port}``, ``{unix_socket}`` and ``{base_url}``
@@ -195,8 +195,8 @@ def _default_launcher_entry(self):
195
""",
196
).tag(config=True)
197
198
- request_headers_override = Dict(
199
+ request_headers_override = Union(
+ [Dict(Unicode()), Callable()],
200
default_value={},
201
202
A dictionary of additional HTTP headers for the proxy request. As with
0 commit comments