HummingbirdCore
import HummingbirdCore
Module information
- Declarations
- 127
- Symbols
- 160
import HummingbirdCore
protocol HBChannelInitializer
HTTPServer child channel initializer protocol
protocol HBHTTPResponder
Protocol for objects generating a HBHTTPResponse
from a HBHTTPRequest
.
protocol HBHTTPResponseError : Error
An error that is capable of generating an HTTP response
protocol HBResponseBodyStreamer : Sendable
Object supplying ByteBuffers for a response body
protocol HBStreamerProtocol : Sendable
Protocol for objects providing a stream of ByteBuffers
protocol HTTPServerBootstrap
Protocol for bootstrap.
enum HBBindAddress
Address to bind server to
final class HBByteBufferStreamer
Request body streamer. HBHTTPDecodeHandler
feeds this with ByteBuffers while the Router consumes them
struct HBHTTPError
Default HTTP error. Provides an HTTP status and a message is so desired
struct HBHTTPRequest
HTTP request
struct HBHTTPResponse
HTTP response
final class HBHTTPServer
HTTP server class
enum HBRequestBody
Request Body. Either a ByteBuffer or a ByteBuffer streamer
struct HBRequestBodyStreamerSequence
AsyncSequence providing ByteBuffers from a request body stream
enum HBResponseBody
Response body. Can be a single ByteBuffer, a stream of ByteBuffers or empty
enum HBStreamerOutput
Values returned when we consume the contents of the streamer
struct HTTP1ChannelInitializer
Setup child channel for HTTP1
typealias HBStreamCallback = (any EventLoop) -> EventLoopFuture<HBStreamerOutput>
Function returning streamed byte buffer output
typealias HBSendable = Sendable
import HummingbirdCoreXCT
import HummingbirdHTTP2
import HummingbirdTLS