Skip to content

Support base64_body #1

@yoshuawuyts

Description

@yoshuawuyts

According to this VCR cassette files should be able to support base64 encoded strings too. This means we need to add support for base64_body to our Body type.

Examples

pub enum BodyKind {
    Base64,
    String,
}
pub struct Body {
    pub encoding: Option<String>,
    pub string: String,
    pub kind: BodyKind,
}

or

pub enum BodyString {
    Base64(String),
    String(String),
}
pub struct Body {
    pub encoding: Option<String>,
    pub string: BodyString,
}

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