streamweave/http_server/
mod.rs1#[cfg(all(not(target_arch = "wasm32"), feature = "http-server"))]
30pub mod consumer;
31#[cfg(all(not(target_arch = "wasm32"), feature = "http-server"))]
33pub mod error;
34#[cfg(all(not(target_arch = "wasm32"), feature = "http-server"))]
35pub mod handler;
36#[cfg(all(not(target_arch = "wasm32"), feature = "http-server"))]
38pub mod input;
39#[cfg(all(not(target_arch = "wasm32"), feature = "http-server"))]
41pub mod middleware;
42#[cfg(all(not(target_arch = "wasm32"), feature = "http-server"))]
44pub mod output;
45#[cfg(all(not(target_arch = "wasm32"), feature = "http-server"))]
46pub mod producer;
47#[cfg(all(not(target_arch = "wasm32"), feature = "http-server"))]
48pub mod types;
49
50#[cfg(all(not(target_arch = "wasm32"), feature = "http-server"))]
51pub use consumer::{HttpResponseConsumer, HttpResponseConsumerConfig};
52#[cfg(all(not(target_arch = "wasm32"), feature = "http-server"))]
53pub use error::{
54 ErrorDetails, ErrorResponse, create_custom_error, is_development_mode, map_generic_error,
55 map_to_http_error,
56};
57#[cfg(all(not(target_arch = "wasm32"), feature = "http-server"))]
58pub use handler::{create_pipeline_handler, create_simple_handler};
59#[cfg(all(not(target_arch = "wasm32"), feature = "http-server"))]
60pub use middleware::{
61 common_middleware_stack, cors_layer, cors_layer_with_origins, logging_layer, rate_limit_layer,
62};
63#[cfg(all(not(target_arch = "wasm32"), feature = "http-server"))]
64pub use producer::{HttpRequestProducer, HttpRequestProducerConfig};
65#[cfg(all(not(target_arch = "wasm32"), feature = "http-server"))]
66pub use types::{ContentType, HttpMethod, HttpRequest, HttpResponse};