Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion crates/native-sidecar/src/execution/javascript/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use crate::state::DeferredRpcError;
const HTTP_LOOPBACK_REQUEST_TIMEOUT: Duration = Duration::from_secs(30);
const VM_FETCH_STREAM_CHUNK_MAX_BYTES: usize = 64 * 1024;
const VM_FETCH_STREAM_COUNT_LIMIT: usize = 256;
type VmFetchResponseHead = (u16, String, Vec<(String, String)>, VmFetchBodyMode);

fn http_loopback_request_timeout() -> Duration {
std::env::var(HTTP_LOOPBACK_REQUEST_TIMEOUT_MS_ENV)
Expand Down Expand Up @@ -272,7 +273,7 @@ fn parse_stream_response_head(
bytes: &[u8],
request_method: &str,
max_response_bytes: usize,
) -> Result<(u16, String, Vec<(String, String)>, VmFetchBodyMode), SidecarError> {
) -> Result<VmFetchResponseHead, SidecarError> {
let text = std::str::from_utf8(bytes).map_err(|error| {
SidecarError::Execution(format!(
"ERR_AGENTOS_VM_FETCH_INVALID_RESPONSE: response headers were not UTF-8: {error}"
Expand Down
36 changes: 0 additions & 36 deletions packages/build-tools/bridge-src/builtins/url-resolution.ts

This file was deleted.

Loading
Loading