diff options
| author | 2022-11-29 02:42:56 -0800 | |
|---|---|---|
| committer | 2022-11-29 02:42:56 -0800 | |
| commit | b631ea7d725a42954c577ea686ae711ef04f63e1 (patch) | |
| tree | 37852a650a0ec02fd6042919dc476c7dab550529 /misctools/fetch.zig | |
| parent | 7b59d9d97c4d4543d8fe2a2222781d7b89539fc2 (diff) | |
| download | bun-b631ea7d725a42954c577ea686ae711ef04f63e1.tar.gz bun-b631ea7d725a42954c577ea686ae711ef04f63e1.tar.zst bun-b631ea7d725a42954c577ea686ae711ef04f63e1.zip | |
import everything from "bun" where possible
Diffstat (limited to 'misctools/fetch.zig')
| -rw-r--r-- | misctools/fetch.zig | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/misctools/fetch.zig b/misctools/fetch.zig index 0b990572f..74622b0ef 100644 --- a/misctools/fetch.zig +++ b/misctools/fetch.zig @@ -1,5 +1,5 @@ const std = @import("std"); -const bun = @import("../src/global.zig"); +const bun = @import("bun"); const string = bun.string; const Output = bun.Output; const Global = bun.Global; @@ -9,16 +9,18 @@ const MutableString = bun.MutableString; const stringZ = bun.stringZ; const default_allocator = bun.default_allocator; const C = bun.C; -const clap = @import("../src/deps/zig-clap/clap.zig"); +pub usingnamespace @import("bun"); + +const clap = bun.clap; const URL = @import("../src/url.zig").URL; -const Headers = @import("http").Headers; +const Headers = @import("bun").HTTP.Headers; const Method = @import("../src/http/method.zig").Method; const ColonListType = @import("../src/cli/colon_list_type.zig").ColonListType; const HeadersTuple = ColonListType(string, noop_resolver); const path_handler = @import("../src/resolver/resolve_path.zig"); -const HTTPThread = @import("http").HTTPThread; -const HTTP = @import("http"); +const HTTPThread = @import("bun").HTTP.HTTPThread; +const HTTP = @import("bun").HTTP; fn noop_resolver(in: string) !string { return in; } |
