Skip to content

Commit

Permalink
Refork frewsxcv/rust-chunked-transfer under MIT license
Browse files Browse the repository at this point in the history
  • Loading branch information
algesten committed Jul 4, 2024
1 parent a138d2e commit 96061c6
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 248 deletions.
File renamed without changes.
22 changes: 22 additions & 0 deletions src/chunked/LICENSE-MIT
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
The MIT License (MIT)

Copyright (c) 2015 The tiny-http Contributors
Copyright (c) 2015 The rust-chunked-transfer Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
20 changes: 2 additions & 18 deletions src/chunked/decoder.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@
// Copyright 2015 The tiny-http Contributors
// Copyright 2015 The rust-chunked-transfer Contributors
// Forked into ureq, 2022, from https://github.com/frewsxcv/rust-chunked-transfer
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Forked into ureq, 2024, from https://github.com/frewsxcv/rust-chunked-transfer
// Forked under dual MIT and Apache 2.0 license (see adjacent LICENSE-MIT and LICENSE-APACHE file)

use std::error::Error;
use std::fmt;
Expand Down Expand Up @@ -57,11 +46,6 @@ where
}
}

/// Returns the remaining bytes left in the chunk being read.
pub fn remaining_chunks_size(&self) -> Option<usize> {
self.remaining_chunks_size
}

/// Unwraps the Decoder into its inner `Read` source.
pub fn into_inner(self) -> R {
self.source
Expand Down
213 changes: 0 additions & 213 deletions src/chunked/encoder.rs

This file was deleted.

17 changes: 0 additions & 17 deletions src/chunked/mod.rs
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
// Copyright 2015 The tiny-http Contributors
// Copyright 2015 The rust-chunked-transfer Contributors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#![allow(dead_code, unused_imports)]
mod decoder;
pub use decoder::Decoder;

mod encoder;
pub use encoder::Encoder;

0 comments on commit 96061c6

Please sign in to comment.