Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ehaydenr committed Dec 19, 2024
1 parent de2df0c commit f75a34f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import HTTPTypes
import NIOCore
import NIOHTTPTypes

/// HTTP request handler sending a configurable stream of zeroes
/// HTTP request handler sending a configurable stream of zeroes. Uses HTTPTypes request/response parts.
public final class HTTPDrippingDownloadHandler: ChannelDuplexHandler {
public typealias InboundIn = HTTPRequestPart
public typealias OutboundOut = HTTPResponsePart
Expand Down
4 changes: 2 additions & 2 deletions Sources/NIOHTTPResponsiveness/ResponsivenessConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//

public struct ResponsivenessConfig: Encodable {
public struct ResponsivenessConfig: Codable, Hashable, Sendable {
public var version: Int
public var urls: ResponsivenessConfigURLs

Expand All @@ -22,7 +22,7 @@ public struct ResponsivenessConfig: Encodable {
}
}

public struct ResponsivenessConfigURLs: Encodable {
public struct ResponsivenessConfigURLs: Codable, Hashable, Sendable {
public var largeDownloadURL: String
public var smallDownloadURL: String
public var uploadURL: String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
import ArgumentParser
import NIOHTTPResponsiveness
import NIOCore
import NIOHTTP1
import NIOHTTPTypesHTTP1
import NIOPosix
import FoundationEssentials
import Foundation

func responsivenessConfigBuffer(scheme: String, host: String, port: Int) throws -> ByteBuffer {
let cfg = ResponsivenessConfig(
Expand Down

0 comments on commit f75a34f

Please sign in to comment.