HTTPBodyChunk

public enum HTTPBodyChunk

Part or all of the incoming request body

  • A new chunk of the incoming HTTP reqest body data has arrived. finishedProcessing() must be called when that chunk has been processed.

    Declaration

    Swift

    case chunk(data: DispatchData, finishedProcessing: () -> Void)
  • An error has occurred whilst streaming the incoming HTTP request data, eg. the connection closed

    Declaration

    Swift

    case failed(error: Error)
  • A trailer header has arrived during the processing of the incoming HTTP request data. This is currently unimplemented.

    Declaration

    Swift

    case trailer(key: String, value: String)
  • end

    The stream of incoming HTTP request data has completed.

    Declaration

    Swift

    case end