Required Instance Methodhummingbird 2.3.0Hummingbird
loadFile(id:range:context:)
Return a reponse body that will write a partial file body
FileProvider.swift:47func loadFile(id: FileIdentifier, range: ClosedRange<Int>, context: some RequestContext) async throws -> ResponseBody
Parameters
Returns
Response body
Other requirements
Type members
associatedtype FileAttributes
File attributes type
associatedtype FileIdentifier
File identifier
Instance members
func getAttributes(id: FileIdentifier
) async throws -> FileAttributes? Get file attributes
func getFileIdentifier(String
) -> FileIdentifier? Get file identifier
func loadFile(id: FileIdentifier, context: some RequestContext
) async throws -> ResponseBody Return a reponse body that will write the file body