Skip to content

Check for leading . on domain #240

@nathaniel-daniel

Description

@nathaniel-daniel

Hello, I'm trying to build a parser and serializer for the netscape cookie format. Being an older format, the leading . for domains is significant for serialization, even if it is generally ignored during deserialization and use. I noticed that this library doesn't seem to expose any way to check if the domain has a leading dot. Would it be possible to introduce a simple function like fn domain_has_leading_dot(&self) -> bool (probably with a big warning in the documentation) to the cookie type to check for leading dots in the domain?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions