mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-24 00:21:08 +01:00
Fix broken docs (#1204)
Fixed un escaped brackets in lib.rs, and reflowed links to ConnectionInfo in app, config, and server.rs
This commit is contained in:
parent
a3ce371312
commit
e4382e4fc1
@ -95,7 +95,7 @@ pub enum CloseCode {
|
|||||||
Abnormal,
|
Abnormal,
|
||||||
/// Indicates that an endpoint is terminating the connection
|
/// Indicates that an endpoint is terminating the connection
|
||||||
/// because it has received data within a message that was not
|
/// because it has received data within a message that was not
|
||||||
/// consistent with the type of the message (e.g., non-UTF-8 [RFC3629]
|
/// consistent with the type of the message (e.g., non-UTF-8 \[RFC3629\]
|
||||||
/// data within a text message).
|
/// data within a text message).
|
||||||
Invalid,
|
Invalid,
|
||||||
/// Indicates that an endpoint is terminating the connection
|
/// Indicates that an endpoint is terminating the connection
|
||||||
|
@ -227,9 +227,9 @@ where
|
|||||||
|
|
||||||
/// Set server host name.
|
/// Set server host name.
|
||||||
///
|
///
|
||||||
/// Host name is used by application router as a hostname for url
|
/// Host name is used by application router as a hostname for url generation.
|
||||||
/// generation. Check [ConnectionInfo](./dev/struct.ConnectionInfo.
|
/// Check [ConnectionInfo](./dev/struct.ConnectionInfo.html#method.host)
|
||||||
/// html#method.host) documentation for more information.
|
/// documentation for more information.
|
||||||
///
|
///
|
||||||
/// By default host name is set to a "localhost" value.
|
/// By default host name is set to a "localhost" value.
|
||||||
pub fn hostname(mut self, val: &str) -> Self {
|
pub fn hostname(mut self, val: &str) -> Self {
|
||||||
|
@ -133,9 +133,9 @@ impl AppConfig {
|
|||||||
|
|
||||||
/// Set server host name.
|
/// Set server host name.
|
||||||
///
|
///
|
||||||
/// Host name is used by application router as a hostname for url
|
/// Host name is used by application router as a hostname for url generation.
|
||||||
/// generation. Check [ConnectionInfo](./dev/struct.ConnectionInfo.
|
/// Check [ConnectionInfo](./struct.ConnectionInfo.html#method.host)
|
||||||
/// html#method.host) documentation for more information.
|
/// documentation for more information.
|
||||||
///
|
///
|
||||||
/// By default host name is set to a "localhost" value.
|
/// By default host name is set to a "localhost" value.
|
||||||
pub fn host(&self) -> &str {
|
pub fn host(&self) -> &str {
|
||||||
|
@ -180,9 +180,11 @@ where
|
|||||||
|
|
||||||
/// Set server host name.
|
/// Set server host name.
|
||||||
///
|
///
|
||||||
/// Host name is used by application router as a hostname for url
|
/// Host name is used by application router as a hostname for url generation.
|
||||||
/// generation. Check [ConnectionInfo](./dev/struct.ConnectionInfo.
|
/// Check [ConnectionInfo](./dev/struct.ConnectionInfo.html#method.host)
|
||||||
/// html#method.host) documentation for more information.
|
/// documentation for more information.
|
||||||
|
///
|
||||||
|
/// By default host name is set to a "localhost" value.
|
||||||
pub fn server_hostname<T: AsRef<str>>(mut self, val: T) -> Self {
|
pub fn server_hostname<T: AsRef<str>>(mut self, val: T) -> Self {
|
||||||
self.host = Some(val.as_ref().to_owned());
|
self.host = Some(val.as_ref().to_owned());
|
||||||
self
|
self
|
||||||
|
Loading…
Reference in New Issue
Block a user