enum Method
Source: http.joule:13
enum MethodSource: http.joule:13
fn as_str(&self) -> &strSource: http.joule:26
fn from_str(s: &str) -> Option<Self>Source: http.joule:40
struct StatusCode(pub u16);Source: http.joule:58
const CONTINUE: StatusCodeSource: http.joule:62
const SWITCHING_PROTOCOLS: StatusCodeSource: http.joule:63
const OK: StatusCodeSource: http.joule:66
const CREATED: StatusCodeSource: http.joule:67
const ACCEPTED: StatusCodeSource: http.joule:68
const NO_CONTENT: StatusCodeSource: http.joule:69
const MOVED_PERMANENTLY: StatusCodeSource: http.joule:72
const FOUND: StatusCodeSource: http.joule:73
const NOT_MODIFIED: StatusCodeSource: http.joule:74
const TEMPORARY_REDIRECT: StatusCodeSource: http.joule:75
const PERMANENT_REDIRECT: StatusCodeSource: http.joule:76
const BAD_REQUEST: StatusCodeSource: http.joule:79
const UNAUTHORIZED: StatusCodeSource: http.joule:80
const FORBIDDEN: StatusCodeSource: http.joule:81
const NOT_FOUND: StatusCodeSource: http.joule:82
const METHOD_NOT_ALLOWED: StatusCodeSource: http.joule:83
const CONFLICT: StatusCodeSource: http.joule:84
const GONE: StatusCodeSource: http.joule:85
const TOO_MANY_REQUESTS: StatusCodeSource: http.joule:86
const INTERNAL_SERVER_ERROR: StatusCodeSource: http.joule:89
const NOT_IMPLEMENTED: StatusCodeSource: http.joule:90
const BAD_GATEWAY: StatusCodeSource: http.joule:91
const SERVICE_UNAVAILABLE: StatusCodeSource: http.joule:92
const GATEWAY_TIMEOUT: StatusCodeSource: http.joule:93
fn is_success(&self) -> boolSource: http.joule:95
fn is_redirect(&self) -> boolSource: http.joule:99
fn is_client_error(&self) -> boolSource: http.joule:103
fn is_server_error(&self) -> boolSource: http.joule:107
fn reason_phrase(&self) -> &strSource: http.joule:111
struct HeadersSource: http.joule:136
fn new() -> SelfSource: http.joule:141
fn set(&mut self, name: &str, value: &str)Set a header (replaces existing)
Source: http.joule:148
fn add(&mut self, name: &str, value: &str)Add a header value (appends to existing)
Source: http.joule:154
fn get(&self, name: &str) -> Option<&str>Get first header value
Source: http.joule:163
fn get_all(&self, name: &str) -> Option<&Vec<String>>Get all values for a header
Source: http.joule:171
fn contains(&self, name: &str) -> boolCheck if header exists
Source: http.joule:176
fn remove(&mut self, name: &str) -> Option<Vec<String>>Remove a header
Source: http.joule:181
fn iter(&self) -> impl Iterator<Item = (&String, &Vec<String>)>Iterate over headers
Source: http.joule:186
fn content_length(&self) -> Option<usize>Get content-length if present
Source: http.joule:191
fn content_type(&self) -> Option<&str>Get content-type if present
Source: http.joule:197
struct RequestHTTP request
Source: http.joule:203
fn get(uri: &str) -> SelfCreate new GET request
Source: http.joule:213
fn post(uri: &str) -> SelfCreate new POST request
Source: http.joule:224
fn new(method: Method, uri: &str) -> SelfCreate new request with method
Source: http.joule:235
fn header(mut self, name: &str, value: &str) -> SelfSet header
Source: http.joule:246
fn body(mut self, body: Vec<u8>) -> SelfSet body
Source: http.joule:252
fn json<T: serde::Serialize>(mut self, value: &T) -> Result<Self, HttpError>Set JSON body
Source: http.joule:258
fn form(mut self, data: &[(String, String)]) -> SelfSet form body
Source: http.joule:266
fn to_bytes(&self) -> Vec<u8>Serialize to bytes
Source: http.joule:279
fn parse<R: Read>(reader: &mut R) -> Result<Self, HttpError>Parse from stream
Source: http.joule:314
struct ResponseHTTP response
Source: http.joule:364
fn new(status: StatusCode) -> SelfCreate new response
Source: http.joule:373
fn ok() -> SelfCreate OK response
Source: http.joule:383
fn not_found() -> SelfCreate not found response
Source: http.joule:388
fn header(mut self, name: &str, value: &str) -> SelfSet header
Source: http.joule:393
fn body(mut self, body: Vec<u8>) -> SelfSet body
Source: http.joule:399
fn text(mut self, text: &str) -> SelfSet text body
Source: http.joule:405
fn html(mut self, html: &str) -> SelfSet HTML body
Source: http.joule:412
fn json<T: serde::Serialize>(mut self, value: &T) -> Result<Self, HttpError>Set JSON body
Source: http.joule:419
fn json_body<T: serde::de::DeserializeOwned>(&self) -> Result<T, HttpError>Parse response body as JSON
Source: http.joule:427
fn text_body(&self) -> Result<String, HttpError>Get body as string
Source: http.joule:432
fn to_bytes(&self) -> Vec<u8>Serialize to bytes
Source: http.joule:438
fn parse<R: Read>(reader: &mut R) -> Result<Self, HttpError>Parse from stream
Source: http.joule:473
struct ClientConfigHTTP client configuration
Source: http.joule:528
fn default() -> SelfSource: http.joule:537
struct HttpClientHTTP client
Source: http.joule:549
fn new() -> SelfCreate new client
Source: http.joule:555
fn with_config(config: ClientConfig) -> SelfCreate with config
Source: http.joule:562
fn send(&self, mut request: Request) -> Result<Response, HttpError>Source: http.joule:568
fn follow_redirect(&self, location: &str, count: u32) -> Result<Response, HttpError>Source: http.joule:606
fn get(&self, url: &str) -> Result<Response, HttpError>Source: http.joule:617
fn post(&self, url: &str, body: Vec<u8>) -> Result<Response, HttpError>Source: http.joule:623
fn post_json<T: serde::Serialize>(&self, url: &str, value: &T) -> Result<Response, HttpError>Source: http.joule:629
fn put(&self, url: &str, body: Vec<u8>) -> Result<Response, HttpError>Source: http.joule:635
fn delete(&self, url: &str) -> Result<Response, HttpError>Source: http.joule:641
trait Handler: Send + SyncHTTP server handler trait
Source: http.joule:651
fn handle(&self, request: Request) -> Response;Source: http.joule:652
struct HttpServerHTTP server
Source: http.joule:656
fn new<H: Handler + 'static>(addr: &str, handler: H) -> Result<Self, HttpError>Source: http.joule:664
fn run(&self) -> Result<(), HttpError>Source: http.joule:674
fn run_threaded(&self, num_threads: usize) -> Result<(), HttpError>Source: http.joule:689
fn handle_connection(&self, mut stream: TcpStream) -> Result<(), HttpError>Source: http.joule:714
fn local_addr(&self) -> &SocketAddrGet local address
Source: http.joule:722
struct FnHandlerSimple function-based handler
Source: http.joule:728
fn handle(&self, request: Request) -> ResponseSource: http.joule:734
struct RouterRouter for path-based routing
Source: http.joule:740
fn new() -> SelfSource: http.joule:745
fn get<F>(mut self, path: &str, handler: F) -> SelfSource: http.joule:749
fn post<F>(mut self, path: &str, handler: F) -> SelfSource: http.joule:757
fn put<F>(mut self, path: &str, handler: F) -> SelfSource: http.joule:765
fn delete<F>(mut self, path: &str, handler: F) -> SelfSource: http.joule:773
fn handle(&self, request: Request) -> ResponseSource: http.joule:783
struct UrlSource: http.joule:800
fn parse(url: &str) -> Result<Self, HttpError>Source: http.joule:809
enum HttpErrorSource: http.joule:843
fn from(e: std::io::Error) -> SelfSource: http.joule:855
fn from(e: TcpError) -> SelfSource: http.joule:861
fn from(e: serde_json::Error) -> SelfSource: http.joule:867
fn read_line<R: Read>(reader: &mut R, buf: &mut String) -> Result<(), HttpError>Source: http.joule:876
fn read_chunked_body<R: Read>(reader: &mut R) -> Result<Vec<u8>, HttpError>Source: http.joule:891
fn url_encode(s: &str) -> StringSource: http.joule:919
fn path_matches(pattern: &str, path: &str) -> boolSource: http.joule:936