Skip to content

Commit

Permalink
Improve WebThingServer::new docs (WebThingsIO#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
arpad-m authored Apr 26, 2022
1 parent 9576181 commit aec6655
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -798,15 +798,14 @@ impl WebThingServer {
/// # Arguments
///
/// * `things` - list of Things managed by this server
/// * `name` - name of this device -- this is only needed if the server is managing multiple
/// things
/// * `port` - port to listen on (defaults to 80)
/// * `hostname` - optional host name, i.e. mything.com
/// * `ssl_options` - tuple of SSL options to pass to the actix web server
/// * `action_generator` - action generator struct
/// * `base_path` - base URL to use, rather than '/'
/// * `disable_host_validation` - whether or not to disable host validation -- note that this
/// can lead to DNS rebinding attacks
/// can lead to DNS rebinding attacks. `None` means to use the default,
/// which keeps it enabled.
pub fn new(
things: ThingsType,
port: Option<u16>,
Expand Down

0 comments on commit aec6655

Please sign in to comment.