MCPcopy Create free account
hub / github.com/acking-you/static_flow / with_behavior_headers

Function with_behavior_headers

crates/frontend/src/api.rs:177–183  ·  view source on GitHub ↗
(mut builder: RequestBuilder)

Source from the content-addressed store, hash-verified

175
176#[cfg(not(feature = "mock"))]
177fn with_behavior_headers(mut builder: RequestBuilder) -> RequestBuilder {
178 builder = builder.header("x-sf-client", "web");
179 if let Some(path) = current_page_path() {
180 builder = builder.header("x-sf-page", &path);
181 }
182 builder
183}
184
185#[cfg(not(feature = "mock"))]
186fn api_get(url: &str) -> RequestBuilder {

Callers 4

api_getFunction · 0.85
api_postFunction · 0.85
api_patchFunction · 0.85
api_deleteFunction · 0.85

Calls 1

current_page_pathFunction · 0.85

Tested by

no test coverage detected