Discover Packages
github.com/FlutterDizaster/file-server
internal
server
package
Version:
v0.0.0-...-bd94320
Opens a new window with list of versions in this module.
Published: Oct 30, 2024
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Server is a http server.
Can be started with Start method.
Gracefully stops when context is canceled.
Must be initialized with New function.
New creates new Server instance.
It takes Settings as argument and returns pointer to Server.
All fields of Settings are required and cant be nil.
Start starts the server and blocks until context is canceled.
It returns error if server cant be started.
Server is gracefully stopped when context is canceled.
If error occurs on start, shutdown is skipped.
Settings used to create Server.
Settings must be provided to New function.
All fields are required and cant be nil.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.