Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISSUE: 42 and 30, implement headers to catalog v1 and get MimeType #52

Merged
merged 30 commits into from
Dec 4, 2023

Conversation

rustchain64
Copy link
Collaborator

@rustchain64 rustchain64 commented Sep 4, 2023

Headers include metadata formatted as CBOR data, and
Endpoints provided with a JSON decoded format.

Closes #42 #30

Copy link
Member

@cryptoquick cryptoquick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good start, but there's definitely a lot of room for improvement.

Cargo.toml Outdated Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
src/header.rs Outdated Show resolved Hide resolved
src/header.rs Outdated Show resolved Hide resolved
tests/file.rs Outdated Show resolved Hide resolved
tests/file.rs Outdated Show resolved Hide resolved
src/structs.rs Outdated Show resolved Hide resolved
@rustchain64
Copy link
Collaborator Author

rustchain64 commented Sep 5, 2023 via email

@rustchain64
Copy link
Collaborator Author

WARNING; adding header to the file, breaks the test.
File no longer matches origonal hash

202 ) trace!("Write file header, should be added");
203 ) // file.write_all(&cat_header_bytes)?;

@rustchain64
Copy link
Collaborator Author

In "pass mime_type to tuple works"

We have verified that the mime_type value passes the mime_type to the tuple and is to be parsed from the segment, within "fs.rs"

Copy link
Member

@cryptoquick cryptoquick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really close! These changes should help get this on the right track.

src/frontend/http.rs Outdated Show resolved Hide resolved
src/frontend/http.rs Outdated Show resolved Hide resolved
src/frontend/http.rs Outdated Show resolved Hide resolved
src/frontend/http.rs Outdated Show resolved Hide resolved
src/frontend/http.rs Outdated Show resolved Hide resolved
src/frontend/http.rs Outdated Show resolved Hide resolved
src/backend/fs.rs Outdated Show resolved Hide resolved
Copy link
Member

@cryptoquick cryptoquick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please clean up debug statements and commented code

Cargo.toml Outdated Show resolved Hide resolved
src/frontend/http.rs Outdated Show resolved Hide resolved
Copy link
Member

@cryptoquick cryptoquick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking really good. LGTM.

@cryptoquick cryptoquick added this pull request to the merge queue Dec 4, 2023
Merged via the queue into main with commit f08e6b8 Dec 4, 2023
3 checks passed
@cryptoquick cryptoquick deleted the WP/cat_v1_headers branch December 4, 2023 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MIME Types
2 participants