{"repo": "axum", "file": "axum/src/extract/connect_info.rs", "line": 74, "symbol": "Connected", "task": "The goal for this trait is to allow users to implement custom IO types that can still provide the same connection metadata.", "query": "goal this trait", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum/src/extract/connect_info.rs", "line": 76, "symbol": "connect_info", "task": "Create type holding information about the connection.", "query": "create type holding", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum/src/extract/path/mod.rs", "line": 526, "symbol": "iter", "task": "Get an iterator over the path parameters.", "query": "iterator over path", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum/src/extract/ws.rs", "line": 183, "symbol": "WebSocketUpgrade", "task": "in later versions, `CONNECT` is used instead.", "query": "later versions connect", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum/src/extract/ws.rs", "line": 221, "symbol": "write_buffer_size", "task": "The default value is 128 KiB.", "query": "default value", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum/src/extract/ws.rs", "line": 395, "symbol": "on_upgrade", "task": "Finalize upgrading the connection and call the provided callback with the stream.", "query": "finalize upgrading connection", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum/src/extract/ws.rs", "line": 610, "symbol": "recv", "task": "# Cancel safety This method is cancel safe.", "query": "cancel safety this", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum/src/extract/ws.rs", "line": 625, "symbol": "protocol", "task": "Return the selected WebSocket subprotocol, if one has been chosen.", "query": "return selected websocket", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum/src/extract/ws.rs", "line": 829, "symbol": "Message", "task": "IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.", "query": "implied including limited", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum/src/extract/ws.rs", "line": 914, "symbol": "into_text", "task": "Attempt to consume the WebSocket message and convert it to a Utf8Bytes.", "query": "attempt consume websocket", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum/src/extract/ws.rs", "line": 927, "symbol": "to_text", "task": "Attempt to get a &str from the WebSocket message, this will try to convert binary data to utf8.", "query": "attempt from websocket", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum/src/form.rs", "line": 113, "symbol": "make_response", "task": "Extracted into separate fn so it's only compiled once for all T.", "query": "extracted into separate", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum/src/json.rs", "line": 166, "symbol": "make_rejection", "task": "Extracted into separate fn so it's only compiled once for all T.", "query": "extracted into separate", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum/src/json.rs", "line": 203, "symbol": "make_response", "task": "Extracted into separate fn so it's only compiled once for all T.", "query": "extracted into separate", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum/src/middleware/from_fn.rs", "line": 338, "symbol": "Next", "task": "The remainder of a middleware stack, including the handler.", "query": "remainder middleware stack", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum/src/response/redirect.rs", "line": 74, "symbol": "with_status_code", "task": "This is intentionally not public since other kinds of redirects might not use the `Location` header, namely `304 Not Modified`.", "query": "this intentionally public", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum/src/response/sse.rs", "line": 188, "symbol": "as_mut", "task": "Returns a mutable reference to the internal buffer.", "query": "returns mutable reference", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum/src/response/sse.rs", "line": 223, "symbol": "EventDataWriter", "task": "pair is treated as a single line ending.", "query": "pair treated single", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum/src/response/sse.rs", "line": 361, "symbol": "comment", "task": "Unlike other functions, this function can be called multiple times to add many comments.", "query": "unlike other functions", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum/src/response/sse.rs", "line": 489, "symbol": "finalize", "task": "Turns the event to `Bytes` ready to be sent If the events is already finalized just returns the `Bytes` again", "query": "turns event bytes", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum/src/routing/method_routing.rs", "line": 891, "symbol": "set_endpoint", "task": "written as a separate function to generate less IR", "query": "written separate function", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum/src/routing/tests/mod.rs", "line": 593, "symbol": "colliding_wildcard_with_fallback", "task": "We might want to reject this too", "query": "might want reject", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum/src/routing/tests/mod.rs", "line": 611, "symbol": "colliding_fallback_with_fallback", "task": "We might want to reject this too", "query": "might want reject", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum/src/routing/tests/nest.rs", "line": 546, "symbol": "overriding_nested_service_router", "task": "This is just documenting current state, not intended behavior.", "query": "this just documenting", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum/src/serve/listener.rs", "line": 16, "symbol": "Listener", "task": "Types that can listen for connections.", "query": "types that listen", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum/src/serve/mod.rs", "line": 195, "symbol": "max_connection_age", "task": "This limit does not apply to connections that have been upgraded, e.g.", "query": "this limit does", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum/src/serve/mod.rs", "line": 238, "symbol": "new", "task": "requests once it has been open for `age`.", "query": "requests once been", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum-core/src/error.rs", "line": 6, "symbol": "Error", "task": "s that can happen when using axum.", "query": "that happen when", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum-core/src/ext_traits/request.rs", "line": 404, "symbol": "WorksForCustomExtractor", "task": "this stuff just needs to compile", "query": "this stuff just", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum-core/src/ext_traits/request_parts.rs", "line": 173, "symbol": "WorksForCustomExtractor", "task": "this stuff just needs to compile", "query": "this stuff just", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum-extra/src/either.rs", "line": 108, "symbol": "Either", "task": "Combines two extractors or responses into a single type.", "query": "combines extractors responses", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum-extra/src/either.rs", "line": 120, "symbol": "Either3", "task": "Combines three extractors or responses into a single type.", "query": "combines three extractors", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum-extra/src/either.rs", "line": 134, "symbol": "Either4", "task": "Combines four extractors or responses into a single type.", "query": "combines four extractors", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum-extra/src/either.rs", "line": 150, "symbol": "Either5", "task": "Combines five extractors or responses into a single type.", "query": "combines five extractors", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum-extra/src/either.rs", "line": 168, "symbol": "Either6", "task": "Combines six extractors or responses into a single type.", "query": "combines extractors responses", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum-extra/src/either.rs", "line": 188, "symbol": "Either7", "task": "Combines seven extractors or responses into a single type.", "query": "combines seven extractors", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum-extra/src/either.rs", "line": 210, "symbol": "Either8", "task": "Combines eight extractors or responses into a single type.", "query": "combines eight extractors", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum-extra/src/extract/cookie/mod.rs", "line": 211, "symbol": "iter", "task": "Get an iterator over all cookies in the jar.", "query": "iterator over cookies", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum-extra/src/extract/cookie/private.rs", "line": 250, "symbol": "decrypt", "task": "Authenticates and decrypts `cookie`, returning the plaintext version if decryption succeeds or `None` otherwise.", "query": "authenticates decrypts cookie", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum-extra/src/extract/cookie/private.rs", "line": 257, "symbol": "iter", "task": "Get an iterator over all cookies in the jar.", "query": "iterator over cookies", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum-extra/src/extract/cookie/signed.rs", "line": 268, "symbol": "verify", "task": "Verifies the authenticity and integrity of `cookie`, returning the plaintext version if verification succeeds or `None` otherwise.", "query": "verifies authenticity integrity", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum-extra/src/extract/cookie/signed.rs", "line": 275, "symbol": "iter", "task": "Get an iterator over all cookies in the jar.", "query": "iterator over cookies", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum-extra/src/extract/multipart.rs", "line": 90, "symbol": "Multipart", "task": "that leads to significant usability issues such as `Field` not being `'static`.", "query": "that leads significant", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum-extra/src/json_lines.rs", "line": 85, "symbol": "AsExtractor", "task": "Marker type used to prove that an `JsonLines` was constructed via `FromRequest`.", "query": "marker type used", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum-extra/src/json_lines.rs", "line": 90, "symbol": "AsResponse", "task": "Marker type used to prove that an `JsonLines` was constructed via `JsonLines::new`.", "query": "marker type used", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum-extra/src/response/erased_json.rs", "line": 47, "symbol": "new", "task": "Create an `ErasedJson` by serializing a value with the compact formatter.", "query": "create erasedjson serializing", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum-extra/src/routing/typed.rs", "line": 333, "symbol": "SecondElementIs", "task": "You normally shouldn't have to use this trait directly.", "query": "normally shouldn have", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum-macros/src/lib.rs", "line": 576, "symbol": "debug_handler", "task": "This macro has no effect when compiled with the release profile.", "query": "this macro effect", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum-macros/src/lib.rs", "line": 632, "symbol": "debug_middleware", "task": "This macro has no effect when compiled with the release profile.", "query": "this macro effect", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum-macros/tests/from_ref/pass/basic.rs", "line": 9, "symbol": "AppState", "task": "This will implement `FromRef` for each field in the struct.", "query": "this will implement", "lang": "en", "source": "docs"} {"repo": "axum", "file": "axum-macros/tests/from_ref/pass/basic.rs", "line": 14, "symbol": "handler", "task": "So those types can be extracted via `State`", "query": "those types extracted", "lang": "en", "source": "docs"} {"repo": "axum", "file": "examples/customize-extractor-error/src/derive_from_request.rs", "line": 40, "symbol": "ApiError", "task": "We create our own rejection type", "query": "create rejection type", "lang": "en", "source": "docs"} {"repo": "axum", "file": "examples/error-handling/src/main.rs", "line": 155, "symbol": "AppError", "task": "The kinds of errors we can hit in our application.", "query": "kinds errors application", "lang": "en", "source": "docs"} {"repo": "axum", "file": "examples/error-handling/src/main.rs", "line": 167, "symbol": "ErrorResponse", "task": "How we want errors responses to be serialized", "query": "want errors responses", "lang": "en", "source": "docs"} {"repo": "axum", "file": "examples/error-handling/src/main.rs", "line": 212, "symbol": "log_app_errors", "task": "Our middleware is responsible for logging error details internally", "query": "middleware responsible logging", "lang": "en", "source": "docs"} {"repo": "axum", "file": "examples/readme/src/main.rs", "line": 36, "symbol": "root", "task": "basic handler that responds with a static string", "query": "basic handler that", "lang": "en", "source": "docs"} {"repo": "axum", "file": "examples/readme/src/main.rs", "line": 58, "symbol": "CreateUser", "task": "the input to our `create_user` handler", "query": "input create user", "lang": "en", "source": "docs"} {"repo": "axum", "file": "examples/readme/src/main.rs", "line": 64, "symbol": "User", "task": "the output to our `create_user` handler", "query": "output create user", "lang": "en", "source": "docs"} {"repo": "axum", "file": "examples/serve-with-hyper/src/main.rs", "line": 81, "symbol": "serve_with_connect_info", "task": "Similar setup to `serve_plain` but captures the remote address and exposes it through the `ConnectInfo` extractor", "query": "similar setup serve", "lang": "en", "source": "docs"} {"repo": "axum", "file": "examples/sse/src/main.rs", "line": 85, "symbol": "spawn_app", "task": "A helper function that spawns our application in the background", "query": "helper function that", "lang": "en", "source": "docs"} {"repo": "axum", "file": "examples/testing/src/main.rs", "line": 123, "symbol": "the_real_deal", "task": "You can also spawn a server and talk to it like any other HTTP server:", "query": "also spawn server", "lang": "en", "source": "docs"} {"repo": "axum", "file": "examples/testing-websockets/src/main.rs", "line": 74, "symbol": "unit_testable_handle_socket", "task": "The implementation is largely the same as `integration_testable_handle_socket` except we call methods from `SinkExt` and `StreamExt`.", "query": "implementation largely same", "lang": "en", "source": "docs"} {"repo": "axum", "file": "examples/todos/src/main.rs", "line": 80, "symbol": "Pagination", "task": "The query parameters for todos index", "query": "query parameters todos", "lang": "en", "source": "docs"} {"repo": "axum", "file": "examples/websockets/src/main.rs", "line": 216, "symbol": "process_message", "task": "helper to print contents of messages to stdout.", "query": "helper print contents", "lang": "en", "source": "docs"}