Crate hotaru Copy item path Source pub use hotaru_core ;pub use akari ;pub use hotaru_meta ;pub use ahttpm ;pub use hotaru_lib ;http HTTP-specific re-exports for standard Hotaru HTTP implementation prelude request_templates Collection of helper functions to easily create common HTTP requests. response_templates Collection of helper functions to easily create common HTTP responses. LApp LApp! - Creates a lazy static App instanceLPattern LPattern! - Creates a lazy static PathPattern instanceLUrl LUrl! - Creates a lazy static Url instanceendpoint middleware object A macro to create an Value from a literal or expression.
It can handle dictionaries, lists, booleans, strings, and numeric values. AcceptLang Represents HTTP Accept-Language header for client language preferences. App App struct modified to store binding address instead of TcpListener ConnectionBuilder Builder for creating database connections ContentCodings A collection of content codings. ContentDisposition Represents the Content-Disposition header as defined in RFC 6266. Cookie CookieMap ExtendedValue Represents an extended parameter value as defined in RFC 5987. HeaderAttribute HeaderConstructor HttpContext Unified HTTP context for both server and client operations. HttpEncoding Combines HTTP transfer and content encodings into a single structure. HttpMeta RequestHeader is a struct that represents the headers of an HTTP request. HttpRequest Represents an HTTP request with metadata and body. HttpResponse HttpSafety Centralized HTTP safety configuration with explicit state tracking HttpTransport HTTP transport state. Locals String-based extension storage, typically used by application code
Multiple values of the same type can be stored with different keys LocalsClone String-based extension storage, typically used by application code. MultiForm Represents a multipart form data. MultiFormFieldFile Represents a file in a multipart form. Params Type-based extension storage, typically used by middleware
Each type can have exactly one value ParamsClone Type-based extension storage, typically used by middleware. ProtocolHandlerBuilder Builder for protocol handlers ProtocolRegistryBuilder RequestPath TemplateManager Manages template loading, caching, and rendering TransferCodings A collection of transfer codings with validation according to HTTP standards. Url Represents a URL in the application.
This struct holds the various components of a URL, including its path, query parameters, and more. UrlEncodedForm ConnectionError ContentCoding Represents HTTP content coding types as defined in HTTP standards. ContentDispositionError Error type for Content-Disposition operations ContentDispositionType Represents the type of a Content-Disposition header. Executable Executable context - determines what’s available for execution HeaderValue Represents a value for an HTTP header, which can be either a single string or multiple values. HttpBody HttpContentType Represents the content type of an HTTP message.
This enum is used to parse and construct HTTP headers related to content type.
It includes well-known content types like text, application, image, audio, video, and multipart.
It also includes a generic Other variant for any other content types. HttpMessage HTTP message wrapper. HttpMethod HttpVersion MultiFormField Represents a field in a multipart form. ParameterValue Represents a parameter value (either regular or extended) PathPattern ProtocolRegistryKind Protocol registry modes ProtocolRole Role of the protocol handler - server or client. RunMode RunMode enum to represent the mode of the application
Production: Production mode
Development: Test on developer’s computer, showing the error message and some debug info. May contain sensitive info.
Beta: Beta mode, showing some debug info. May contain some sensitive info.
Build: Build mode. For testing starberry itself. It will print out any information possible. StatusCode Represents HTTP status codes. TcpConnectionStream Represents a connection which can be either plain TCP or secured with TLS. TransferCoding Represents HTTP transfer coding types as defined in HTTP standards. Value AsyncMiddleware Message Protocol-defined message format. ParamValue Object-safe supertrait for stored values. Protocol User-defined protocol handler. RequestContext Context that flows through request handlers. Stream Protocol-defined stream abstraction. Transport Protocol-defined connection abstraction. AnyPath Creates a any path pattern.
This is useful for matching any path.
This is faster then regex when any path should be passed into the same endpoint AnyUrl Creates a any pattern.
You may use this to match any string.
This is faster then regex when any string should be passed into the same endpoint LitUrl Creates a literal path pattern.
This is a wrapper around the literal_path function.
This is useful for creating path patterns that are not regex. RegUrl Creates a regex path pattern.
This is a wrapper around the regex_path function.
This is useful for creating path patterns that are regex. TrailingSlash combine_hashmap Helper function to merge two HashMap<K, V> without overwriting existing entries in a. HTTP Default HTTP protocol (currently HTTP/1.1)
This provides a simpler name for user-facing code while maintaining
version-specific naming in the implementation. Result