diff options
author | 2022-03-08 18:54:54 -0800 | |
---|---|---|
committer | 2022-03-08 18:54:54 -0800 | |
commit | 701d6ec45d7e339b352b37869bd2a7d4849b35fb (patch) | |
tree | a88a0b03a2e644d5e1bd51eb609526b75f78ef53 /src/http | |
parent | 787769ac3912fce6d1ffdbd384f19b800e133362 (diff) | |
download | bun-701d6ec45d7e339b352b37869bd2a7d4849b35fb.tar.gz bun-701d6ec45d7e339b352b37869bd2a7d4849b35fb.tar.zst bun-701d6ec45d7e339b352b37869bd2a7d4849b35fb.zip |
rename _global -> bun
Diffstat (limited to 'src/http')
-rw-r--r-- | src/http/async_socket.zig | 4 | ||||
-rw-r--r-- | src/http/method.zig | 20 | ||||
-rw-r--r-- | src/http/mime_type.zig | 22 | ||||
-rw-r--r-- | src/http/url_path.zig | 22 | ||||
-rw-r--r-- | src/http/websocket.zig | 20 |
5 files changed, 44 insertions, 44 deletions
diff --git a/src/http/async_socket.zig b/src/http/async_socket.zig index 7c61d994d..bdfee7412 100644 --- a/src/http/async_socket.zig +++ b/src/http/async_socket.zig @@ -9,7 +9,7 @@ const KeepAlive = @import("../http_client_async.zig").KeepAlive; const Output = @import("../global.zig").Output; const NetworkThread = @import("../network_thread.zig"); const Environment = @import("../global.zig").Environment; -const _global = @import("../global.zig"); +const bun = @import("../global.zig"); const extremely_verbose = @import("../http_client_async.zig").extremely_verbose; const SOCKET_FLAGS: u32 = @import("../http_client_async.zig").SOCKET_FLAGS; const getAllocator = @import("../http_client_async.zig").getAllocator; @@ -335,7 +335,7 @@ pub const SSL = struct { send_frame: Yield(SSL.send) = Yield(SSL.send){}, read_frame: Yield(SSL.read) = Yield(SSL.read){}, - hostname: [_global.MAX_PATH_BYTES]u8 = undefined, + hostname: [bun.MAX_PATH_BYTES]u8 = undefined, is_ssl: bool = false, handshake_state: HandshakeState = HandshakeState.none, diff --git a/src/http/method.zig b/src/http/method.zig index 0b85cf761..62ea3ce7d 100644 --- a/src/http/method.zig +++ b/src/http/method.zig @@ -1,13 +1,13 @@ -const _global = @import("../global.zig"); -const string = _global.string; -const Output = _global.Output; -const Global = _global.Global; -const Environment = _global.Environment; -const strings = _global.strings; -const MutableString = _global.MutableString; -const stringZ = _global.stringZ; -const default_allocator = _global.default_allocator; -const C = _global.C; +const bun = @import("../global.zig"); +const string = bun.string; +const Output = bun.Output; +const Global = bun.Global; +const Environment = bun.Environment; +const strings = bun.strings; +const MutableString = bun.MutableString; +const stringZ = bun.stringZ; +const default_allocator = bun.default_allocator; +const C = bun.C; const std = @import("std"); pub const Method = enum { diff --git a/src/http/mime_type.zig b/src/http/mime_type.zig index 73b545721..65dd367cd 100644 --- a/src/http/mime_type.zig +++ b/src/http/mime_type.zig @@ -1,17 +1,17 @@ const std = @import("std"); -const _global = @import("../global.zig"); -const string = _global.string; -const Output = _global.Output; -const Global = _global.Global; -const Environment = _global.Environment; -const strings = _global.strings; -const MutableString = _global.MutableString; -const stringZ = _global.stringZ; -const default_allocator = _global.default_allocator; -const C = _global.C; +const bun = @import("../global.zig"); +const string = bun.string; +const Output = bun.Output; +const Global = bun.Global; +const Environment = bun.Environment; +const strings = bun.strings; +const MutableString = bun.MutableString; +const stringZ = bun.stringZ; +const default_allocator = bun.default_allocator; +const C = bun.C; const Loader = @import("../options.zig").Loader; -const ComptimeStringMap = _global.ComptimeStringMap; +const ComptimeStringMap = bun.ComptimeStringMap; const MimeType = @This(); diff --git a/src/http/url_path.zig b/src/http/url_path.zig index 0e4f12f83..4fcc54ae4 100644 --- a/src/http/url_path.zig +++ b/src/http/url_path.zig @@ -1,14 +1,14 @@ -const _global = @import("../global.zig"); -const string = _global.string; -const Output = _global.Output; -const toMutable = _global.constStrToU8; -const Global = _global.Global; -const Environment = _global.Environment; -const strings = _global.strings; -const MutableString = _global.MutableString; -const stringZ = _global.stringZ; -const default_allocator = _global.default_allocator; -const C = _global.C; +const bun = @import("../global.zig"); +const string = bun.string; +const Output = bun.Output; +const toMutable = bun.constStrToU8; +const Global = bun.Global; +const Environment = bun.Environment; +const strings = bun.strings; +const MutableString = bun.MutableString; +const stringZ = bun.stringZ; +const default_allocator = bun.default_allocator; +const C = bun.C; const PercentEncoding = @import("../query_string_map.zig").PercentEncoding; const std = @import("std"); diff --git a/src/http/websocket.zig b/src/http/websocket.zig index 106f18433..9fd5e212c 100644 --- a/src/http/websocket.zig +++ b/src/http/websocket.zig @@ -10,16 +10,16 @@ const IPv4 = std.x.os.IPv4; const IPv6 = std.x.os.IPv6; const Socket = std.x.os.Socket; const os = std.os; -const _global = @import("../global.zig"); -const string = _global.string; -const Output = _global.Output; -const Global = _global.Global; -const Environment = _global.Environment; -const strings = _global.strings; -const MutableString = _global.MutableString; -const stringZ = _global.stringZ; -const default_allocator = _global.default_allocator; -const C = _global.C; +const bun = @import("../global.zig"); +const string = bun.string; +const Output = bun.Output; +const Global = bun.Global; +const Environment = bun.Environment; +const strings = bun.strings; +const MutableString = bun.MutableString; +const stringZ = bun.stringZ; +const default_allocator = bun.default_allocator; +const C = bun.C; pub const Opcode = enum(u4) { Continue = 0x0, |