diff --git a/core/http/src/handling/response/cookie.rs b/core/http/src/handling/response/cookie.rs deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/core/http/src/handling/response/cookie_management/cookie_builder.rs b/core/http/src/handling/response/cookie_management/cookie_builder.rs new file mode 100644 index 0000000000000000000000000000000000000000..0a800f1b19c104d1086d44ef682a32a37aaa6c40 --- /dev/null +++ b/core/http/src/handling/response/cookie_management/cookie_builder.rs @@ -0,0 +1 @@ +struct CookieBuilder {} diff --git a/core/http/src/handling/response/cookie_management/mod.rs b/core/http/src/handling/response/cookie_management/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..ee6df234d2c2e86c3daa39c173c42275006168de --- /dev/null +++ b/core/http/src/handling/response/cookie_management/mod.rs @@ -0,0 +1 @@ +mod cookie_builder; diff --git a/core/http/src/handling/response/datatypes.rs b/core/http/src/handling/response/datatypes.rs index 503929aaa57d9fb2284db5deedcddf4e76f52a0f..669005e5c6d190a3e660312c7c2a68eb237051fc 100644 --- a/core/http/src/handling/response/datatypes.rs +++ b/core/http/src/handling/response/datatypes.rs @@ -20,21 +20,21 @@ pub enum SameSite { pub struct Cookie<'a> { /// Storage for the cookie string. Only used if this structure was derived /// from a string that was subsequently parsed. - cookie_string: &'a str, - name: &'a str, - value: &'a str, + pub(crate) cookie_string: Option<&'a str>, + pub(crate) name: &'a str, + pub(crate) value: &'a str, // expires: Option<Tm>, - max_age: Option<Duration>, + pub(crate) max_age: Option<Duration>, /// The cookie's domain, if any. - domain: Option<&'a str>, + pub(crate) domain: Option<&'a str>, /// The cookie's path domain, if any. - path: Option<&'a str>, + pub(crate) path: Option<&'a str>, /// Whether this cookie was marked Secure. - secure: Option<bool>, + pub(crate) secure: Option<bool>, /// Whether this cookie was marked HttpOnly. - http_only: Option<bool>, + pub(crate) http_only: Option<bool>, /// The draft `SameSite` attribute. - same_site: Option<SameSite>, + pub(crate) same_site: Option<SameSite>, } pub struct Response<'a> { diff --git a/core/http/src/handling/response/mod.rs b/core/http/src/handling/response/mod.rs index 017bc151bfa960cf199e1b767d445ccbf1adf211..1fdc8755f16a7bb2bceaa8c89ec07d18afa31af7 100644 --- a/core/http/src/handling/response/mod.rs +++ b/core/http/src/handling/response/mod.rs @@ -1,4 +1,4 @@ -mod cookie; +mod cookie_management; mod datatypes; mod response; mod status;