You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Upgrade to HTTP.jl 2.x
* Increases minimum Julia version to 1.11
* Deprecates :stream, :access_log, and :queuesize
* Creates new name queryparams(...) shadowing and dispatching to URIs rather than re-exporting from HTTP.jl
* Fix issue with staticfiles only serving once, due to HTTP.jl consuming its BytesBody
* Move from lowercasing header names to using canonical header names
Copy file name to clipboardExpand all lines: .github/workflows/ci.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ jobs:
24
24
fail-fast: false
25
25
matrix:
26
26
version:
27
-
- '1.10'# Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'.
27
+
- '1.11'# Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'.
28
28
- '1'# Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
@@ -153,7 +153,7 @@ Stream handlers are used to stream data. They are defined using the `@stream` ma
153
153
- You need to explicitly include the type definition so Oxygen can identify this as a `Stream` handler
154
154
155
155
### Websocket Handlers
156
-
Websocket handlers are used to handle websocket connections. They are defined using the `@websocket` macro or the `websocket()` function and accept a `HTTP.WebSocket` object as the first argument. These handlers support both function and do-block syntax.
156
+
Websocket handlers are used to handle websocket connections. They are defined using the `@websocket` macro or the `websocket()` function and accept a `HTTP.WebSockets.WebSocket` object as the first argument. These handlers support both function and do-block syntax.
157
157
158
158
-`@websocket` and `websocket()` don't require a type definition on the first argument, they assume it's a websocket.
159
159
-`Websocket` handlers can also be assigned with the `@get` macro or `get()` function, because the websocket protocol requires a `GET` request to initiate the handshake.
Disabling the internal logger can provide some massive performance gains, which can be helpful in some scenarios.
1059
-
Anecdotally, i've seen a 2-3x speedup in `serve()` and a 4-5x speedup in `serveparallel()` performance.
1060
-
1061
-
```julia
1062
-
# This is how you disable internal logging in both modes
1063
-
serve(access_log=nothing)
1064
-
serveparallel(access_log=nothing)
1065
-
```
1066
-
1067
1056
## Logging
1068
1057
1069
-
Oxygen provides a default logging format but allows you to customize the format using the `access_log` parameter. This functionality is available in both the `serve()` and `serveparallel()` functions.
1070
-
1071
-
You can read more about the logging options [here](https://juliaweb.github.io/HTTP.jl/stable/reference/#HTTP.@logfmt_str)
@@ -153,7 +153,7 @@ Stream handlers are used to stream data. They are defined using the `@stream` ma
153
153
- You need to explicitly include the type definition so Oxygen can identify this as a `Stream` handler
154
154
155
155
### Websocket Handlers
156
-
Websocket handlers are used to handle websocket connections. They are defined using the `@websocket` macro or the `websocket()` function and accept a `HTTP.WebSocket` object as the first argument. These handlers support both function and do-block syntax.
156
+
Websocket handlers are used to handle websocket connections. They are defined using the `@websocket` macro or the `websocket()` function and accept a `HTTP.WebSockets.WebSocket` object as the first argument. These handlers support both function and do-block syntax.
157
157
158
158
-`@websocket` and `websocket()` don't require a type definition on the first argument, they assume it's a websocket.
159
159
-`Websocket` handlers can also be assigned with the `@get` macro or `get()` function, because the websocket protocol requires a `GET` request to initiate the handshake.
Disabling the internal logger can provide some massive performance gains, which can be helpful in some scenarios.
1059
-
Anecdotally, i've seen a 2-3x speedup in `serve()` and a 4-5x speedup in `serveparallel()` performance.
1060
-
1061
-
```julia
1062
-
# This is how you disable internal logging in both modes
1063
-
serve(access_log=nothing)
1064
-
serveparallel(access_log=nothing)
1065
-
```
1066
-
1067
1056
## Logging
1068
1057
1069
-
Oxygen provides a default logging format but allows you to customize the format using the `access_log` parameter. This functionality is available in both the `serve()` and `serveparallel()` functions.
1070
-
1071
-
You can read more about the logging options [here](https://juliaweb.github.io/HTTP.jl/stable/reference/#HTTP.@logfmt_str)
0 commit comments