From 1f94bb7ce6776e170e7106be9e28297271116e88 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Sat, 5 Mar 2022 23:55:35 +0000 Subject: [PATCH] update v3 links to v4 --- content/docs/application.md | 24 ++++++++++++------------ content/docs/databases.md | 4 ++-- content/docs/errors.md | 10 +++++----- content/docs/extractors.md | 18 +++++++++--------- content/docs/handlers.md | 8 ++++---- content/docs/http2.md | 2 +- content/docs/middleware.md | 6 +++--- content/docs/request.md | 6 +++--- content/docs/response.md | 4 ++-- content/docs/server.md | 20 ++++++++++---------- content/docs/testing.md | 6 +++--- content/docs/url-dispatch.md | 36 ++++++++++++++++++------------------ content/docs/websockets.md | 2 +- 13 files changed, 73 insertions(+), 73 deletions(-) diff --git a/content/docs/application.md b/content/docs/application.md index 00d4863..71379f4 100644 --- a/content/docs/application.md +++ b/content/docs/application.md @@ -86,15 +86,15 @@ Each [`ServiceConfig`][serviceconfig] can have its own `data`, `routes`, and `se [usingappprefix]: /docs/url-dispatch/index.html#using-an-application-prefix-to-compose-applications [stateexample]: https://github.com/actix/examples/blob/master/basics/state/src/main.rs -[guardtrait]: https://docs.rs/actix-web/3/actix_web/guard/trait.Guard.html -[guardfuncs]: https://docs.rs/actix-web/3/actix_web/guard/index.html#functions -[guardheader]: https://docs.rs/actix-web/3/actix_web/guard/fn.Header.html -[data]: https://docs.rs/actix-web/3/actix_web/web/struct.Data.html -[app]: https://docs.rs/actix-web/3/actix_web/struct.App.html -[appconfig]: https://docs.rs/actix-web/3/actix_web/struct.App.html#method.configure -[appdata]: https://docs.rs/actix-web/3/actix_web/struct.App.html#method.app_data -[scope]: https://docs.rs/actix-web/3/actix_web/struct.Scope.html -[webscopeconfig]: https://docs.rs/actix-web/3/actix_web/struct.Scope.html#method.configure -[webscope]: https://docs.rs/actix-web/3/actix_web/web/fn.scope.html -[urlfor]: https://docs.rs/actix-web/3/actix_web/struct.HttpRequest.html#method.url_for -[serviceconfig]: https://docs.rs/actix-web/3/actix_web/web/struct.ServiceConfig.html +[guardtrait]: https://docs.rs/actix-web/4/actix_web/guard/trait.Guard.html +[guardfuncs]: https://docs.rs/actix-web/4/actix_web/guard/index.html#functions +[guardheader]: https://docs.rs/actix-web/4/actix_web/guard/fn.Header.html +[data]: https://docs.rs/actix-web/4/actix_web/web/struct.Data.html +[app]: https://docs.rs/actix-web/4/actix_web/struct.App.html +[appconfig]: https://docs.rs/actix-web/4/actix_web/struct.App.html#method.configure +[appdata]: https://docs.rs/actix-web/4/actix_web/struct.App.html#method.app_data +[scope]: https://docs.rs/actix-web/4/actix_web/struct.Scope.html +[webscopeconfig]: https://docs.rs/actix-web/4/actix_web/struct.Scope.html#method.configure +[webscope]: https://docs.rs/actix-web/4/actix_web/web/fn.scope.html +[urlfor]: https://docs.rs/actix-web/4/actix_web/struct.HttpRequest.html#method.url_for +[serviceconfig]: https://docs.rs/actix-web/4/actix_web/web/struct.ServiceConfig.html diff --git a/content/docs/databases.md b/content/docs/databases.md index 42167da..7cf56ce 100644 --- a/content/docs/databases.md +++ b/content/docs/databases.md @@ -32,5 +32,5 @@ This example also maps the error to an `HttpResponse` before using the `?` opera That's it! See the full example here: https://github.com/actix/examples/tree/master/databases/diesel -[web-block]: https://docs.rs/actix-web/3/actix_web/web/fn.block.html -[response-error]: https://docs.rs/actix-web/3/actix_web/trait.ResponseError.html +[web-block]: https://docs.rs/actix-web/4/actix_web/web/fn.block.html +[response-error]: https://docs.rs/actix-web/4/actix_web/trait.ResponseError.html diff --git a/content/docs/errors.md b/content/docs/errors.md index 84cc9a3..e79cee5 100644 --- a/content/docs/errors.md +++ b/content/docs/errors.md @@ -98,10 +98,10 @@ log = "0.4" {{< include-example example="errors" file="logging.rs" section="logging" >}} -[actixerror]: https://docs.rs/actix-web/3/actix_web/error/struct.Error.html -[errorhelpers]: https://docs.rs/actix-web/3/actix_web/trait.ResponseError.html +[actixerror]: https://docs.rs/actix-web/4/actix_web/error/struct.Error.html +[errorhelpers]: https://docs.rs/actix-web/4/actix_web/trait.ResponseError.html [derive_more]: https://crates.io/crates/derive_more -[responseerror]: https://docs.rs/actix-web/3/actix_web/error/trait.ResponseError.html -[responseerrorimpls]: https://docs.rs/actix-web/3/actix_web/error/trait.ResponseError.html#foreign-impls +[responseerror]: https://docs.rs/actix-web/4/actix_web/error/trait.ResponseError.html +[responseerrorimpls]: https://docs.rs/actix-web/4/actix_web/error/trait.ResponseError.html#foreign-impls [stderror]: https://doc.rust-lang.org/std/error/trait.Error.html -[status_code]: https://docs.rs/actix-web/3.0.0/actix_web/http/struct.StatusCode.html +[status_code]: https://docs.rs/actix-web/4/actix_web/http/struct.StatusCode.html diff --git a/content/docs/extractors.md b/content/docs/extractors.md index 4dfc2b6..8bbde48 100644 --- a/content/docs/extractors.md +++ b/content/docs/extractors.md @@ -82,15 +82,15 @@ Although this handler will work, `data.count` will only count the number of requ > Be careful with synchronization primitives like `Mutex` or `RwLock`. The `actix-web` framework handles requests asynchronously. By blocking thread execution, all concurrent request handling processes would block. If you need to share or update some state from multiple threads, consider using the tokio synchronization primitives. -[pathstruct]: https://docs.rs/actix-web/3/actix_web/dev/struct.Path.html -[querystruct]: https://docs.rs/actix-web/3/actix_web/web/struct.Query.html -[jsonstruct]: https://docs.rs/actix-web/3/actix_web/web/struct.Json.html -[jsonconfig]: https://docs.rs/actix-web/3/actix_web/web/struct.JsonConfig.html -[formconfig]: https://docs.rs/actix-web/3/actix_web/web/struct.FormConfig.html -[datastruct]: https://docs.rs/actix-web/3/actix_web/web/struct.Data.html -[stringexample]: https://docs.rs/actix-web/3/actix_web/trait.FromRequest.html#example-2 -[bytesexample]: https://docs.rs/actix-web/3/actix_web/trait.FromRequest.html#example-4 -[payloadexample]: https://docs.rs/actix-web/3/actix_web/web/struct.Payload.html +[pathstruct]: https://docs.rs/actix-web/4/actix_web/dev/struct.Path.html +[querystruct]: https://docs.rs/actix-web/4/actix_web/web/struct.Query.html +[jsonstruct]: https://docs.rs/actix-web/4/actix_web/web/struct.Json.html +[jsonconfig]: https://docs.rs/actix-web/4/actix_web/web/struct.JsonConfig.html +[formconfig]: https://docs.rs/actix-web/4/actix_web/web/struct.FormConfig.html +[datastruct]: https://docs.rs/actix-web/4/actix_web/web/struct.Data.html +[stringexample]: https://docs.rs/actix-web/4/actix_web/trait.FromRequest.html#example-2 +[bytesexample]: https://docs.rs/actix-web/4/actix_web/trait.FromRequest.html#example-4 +[payloadexample]: https://docs.rs/actix-web/4/actix_web/web/struct.Payload.html [actix]: https://actix.github.io/actix/actix/ [atomics]: https://doc.rust-lang.org/std/sync/atomic/ [shared_mutable_state]: ../application#shared-mutable-state diff --git a/content/docs/handlers.md b/content/docs/handlers.md index b7f763a..266b5b0 100644 --- a/content/docs/handlers.md +++ b/content/docs/handlers.md @@ -64,7 +64,7 @@ For this case, the [Either][either] type can be used. `Either` allows combining {{< include-example example="either" file="main.rs" section="either" >}} -[implfromrequest]: https://docs.rs/actix-web/3/actix_web/trait.FromRequest.html -[respondertrait]: https://docs.rs/actix-web/3/actix_web/trait.Responder.html -[responderimpls]: https://docs.rs/actix-web/3/actix_web/trait.Responder.html#foreign-impls -[either]: https://docs.rs/actix-web/3/actix_web/enum.Either.html +[implfromrequest]: https://docs.rs/actix-web/4/actix_web/trait.FromRequest.html +[respondertrait]: https://docs.rs/actix-web/4/actix_web/trait.Responder.html +[responderimpls]: https://docs.rs/actix-web/4/actix_web/trait.Responder.html#foreign-impls +[either]: https://docs.rs/actix-web/4/actix_web/enum.Either.html diff --git a/content/docs/http2.md b/content/docs/http2.md index 75aa70f..8262c8b 100644 --- a/content/docs/http2.md +++ b/content/docs/http2.md @@ -30,6 +30,6 @@ Upgrades to _HTTP/2.0_ schema described in [rfc section 3.2][rfcsection32] is no [rfcsection32]: https://http2.github.io/http2-spec/#rfc.section.3.2 [rfcsection34]: https://http2.github.io/http2-spec/#rfc.section.3.4 -[bindopenssl]: https://docs.rs/actix-web/3/actix_web/struct.HttpServer.html#method.bind_openssl +[bindopenssl]: https://docs.rs/actix-web/4/actix_web/struct.HttpServer.html#method.bind_openssl [tlsalpn]: https://tools.ietf.org/html/rfc7301 [examples]: https://github.com/actix/examples/tree/master/https-tls/rustls diff --git a/content/docs/middleware.md b/content/docs/middleware.md index fe6bed9..ad0100c 100644 --- a/content/docs/middleware.md +++ b/content/docs/middleware.md @@ -106,6 +106,6 @@ You can use the `ErrorHandlers::handler()` method to register a custom error han [cookiesession]: https://docs.rs/actix-session/0.3.0/actix_session/struct.CookieSession.html [actixsession]: https://docs.rs/actix-session/0.3.0/actix_session/ [envlogger]: https://docs.rs/env_logger/*/env_logger/ -[servicetrait]: https://docs.rs/actix-web/3/actix_web/dev/trait.Service.html -[transformtrait]: https://docs.rs/actix-web/3/actix_web/dev/trait.Transform.html -[wrap_fn]: https://docs.rs/actix-web/3/actix_web/struct.App.html#method.wrap_fn +[servicetrait]: https://docs.rs/actix-web/4/actix_web/dev/trait.Service.html +[transformtrait]: https://docs.rs/actix-web/4/actix_web/dev/trait.Transform.html +[wrap_fn]: https://docs.rs/actix-web/4/actix_web/struct.App.html#method.wrap_fn diff --git a/content/docs/request.md b/content/docs/request.md index 7568081..032e02f 100644 --- a/content/docs/request.md +++ b/content/docs/request.md @@ -83,7 +83,7 @@ In the following example, we read and print the request payload chunk by chunk: [multipartstruct]: https://docs.rs/actix-multipart/0.2/actix_multipart/struct.Multipart.html [fieldstruct]: https://docs.rs/actix-multipart/0.2/actix_multipart/struct.Field.html [multipartexample]: https://github.com/actix/examples/tree/master/forms/multipart -[urlencoded]: https://docs.rs/actix-web/3/actix_web/dev/struct.UrlEncoded.html -[payloadextractor]: https://docs.rs/actix-web/3/actix_web/web/struct.Payload.html +[urlencoded]: https://docs.rs/actix-web/4/actix_web/dev/struct.UrlEncoded.html +[payloadextractor]: https://docs.rs/actix-web/4/actix_web/web/struct.Payload.html [multipartcrate]: https://crates.io/crates/actix-multipart -[formencoded]: https://docs.rs/actix-web/3/actix_web/web/struct.Form.html +[formencoded]: https://docs.rs/actix-web/4/actix_web/web/struct.Form.html diff --git a/content/docs/response.md b/content/docs/response.md index 5547ce7..422fed9 100644 --- a/content/docs/response.md +++ b/content/docs/response.md @@ -64,5 +64,5 @@ Also it is possible to set default content encoding on application level, by def {{< include-example example="responses" file="auto.rs" section="auto" >}} -[responsebuilder]: https://docs.rs/actix-web/3/actix_web/dev/struct.HttpResponseBuilder.html -[compressmidddleware]: https://docs.rs/actix-web/3/actix_web/middleware/struct.Compress.html +[responsebuilder]: https://docs.rs/actix-web/4/actix_web/dev/struct.HttpResponseBuilder.html +[compressmidddleware]: https://docs.rs/actix-web/4/actix_web/middleware/struct.Compress.html diff --git a/content/docs/server.md b/content/docs/server.md index 45048e6..011705c 100644 --- a/content/docs/server.md +++ b/content/docs/server.md @@ -91,7 +91,7 @@ Actix Web keeps connections open to wait for subsequent requests. {{< include-example example="server" file="keep_alive.rs" section="keep-alive" >}} -If the first option above is selected, then keep-alive is enabled for HTTP/1.1 requests if the response does not explicitly disallow it by, for example, setting the [connection type][httpconnectiontype] to `Close` or `Upgrade`. Force closing a connection can be done with [the `force_close()` method on `HttpResponseBuilder`](https://docs.rs/actix-web/3/actix_web/dev/struct.HttpResponseBuilder.html#method.force_close) +If the first option above is selected, then keep-alive is enabled for HTTP/1.1 requests if the response does not explicitly disallow it by, for example, setting the [connection type][httpconnectiontype] to `Close` or `Upgrade`. Force closing a connection can be done with [the `force_close()` method on `HttpResponseBuilder`](https://docs.rs/actix-web/4/actix_web/dev/struct.HttpResponseBuilder.html#method.force_close) > Keep-alive is **off** for HTTP/1.0 and is **on** for HTTP/1.1 and HTTP/2.0. @@ -107,14 +107,14 @@ If the first option above is selected, then keep-alive is enabled for HTTP/1.1 r > It is possible to disable signal handling with [`HttpServer::disable_signals()`][disablesignals] method. -[server]: https://docs.rs/actix-web/3/actix_web/dev/struct.Server.html -[httpserverstruct]: https://docs.rs/actix-web/3/actix_web/struct.HttpServer.html -[bindmethod]: https://docs.rs/actix-web/3/actix_web/struct.HttpServer.html#method.bind -[bindopensslmethod]: https://docs.rs/actix-web/3/actix_web/struct.HttpServer.html#method.bind_openssl -[bindrusttls]: https://docs.rs/actix-web/3/actix_web/struct.HttpServer.html#method.bind_rustls -[workers]: https://docs.rs/actix-web/3/actix_web/struct.HttpServer.html#method.workers +[server]: https://docs.rs/actix-web/4/actix_web/dev/struct.Server.html +[httpserverstruct]: https://docs.rs/actix-web/4/actix_web/struct.HttpServer.html +[bindmethod]: https://docs.rs/actix-web/4/actix_web/struct.HttpServer.html#method.bind +[bindopensslmethod]: https://docs.rs/actix-web/4/actix_web/struct.HttpServer.html#method.bind_openssl +[bindrusttls]: https://docs.rs/actix-web/4/actix_web/struct.HttpServer.html#method.bind_rustls +[workers]: https://docs.rs/actix-web/4/actix_web/struct.HttpServer.html#method.workers [tlsalpn]: https://tools.ietf.org/html/rfc7301 [exampleopenssl]: https://github.com/actix/examples/tree/master/security/openssl -[shutdowntimeout]: https://docs.rs/actix-web/3/actix_web/struct.HttpServer.html#method.shutdown_timeout -[disablesignals]: https://docs.rs/actix-web/3/actix_web/struct.HttpServer.html#method.disable_signals -[httpconnectiontype]: https://docs.rs/actix-web/3/actix_web/http/enum.ConnectionType.html +[shutdowntimeout]: https://docs.rs/actix-web/4/actix_web/struct.HttpServer.html#method.shutdown_timeout +[disablesignals]: https://docs.rs/actix-web/4/actix_web/struct.HttpServer.html#method.disable_signals +[httpconnectiontype]: https://docs.rs/actix-web/4/actix_web/http/enum.ConnectionType.html diff --git a/content/docs/testing.md b/content/docs/testing.md index 33c491b..c7e1a41 100644 --- a/content/docs/testing.md +++ b/content/docs/testing.md @@ -37,6 +37,6 @@ If you need to test stream generation, it would be enough to call `take_body()` {{< include-example example="testing" file="stream_response.rs" section="stream-response" >}} [serversentevents]: https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events -[responsebody]: https://docs.rs/actix-web/3/actix_web/body/enum.ResponseBody.html -[actixdocs]: https://docs.rs/actix-web/3/actix_web/test/index.html -[testrequest]: https://docs.rs/actix-web/3/actix_web/test/struct.TestRequest.html +[responsebody]: https://docs.rs/actix-web/4/actix_web/body/enum.ResponseBody.html +[actixdocs]: https://docs.rs/actix-web/4/actix_web/test/index.html +[testrequest]: https://docs.rs/actix-web/4/actix_web/test/struct.TestRequest.html diff --git a/content/docs/url-dispatch.md b/content/docs/url-dispatch.md index b45773e..635c5e0 100644 --- a/content/docs/url-dispatch.md +++ b/content/docs/url-dispatch.md @@ -280,23 +280,23 @@ If the path pattern can not be found in the routing table or a resource can not {{< include-example example="url-dispatch" file="dhandler.rs" section="default" >}} [handlersection]: ../handlers/ -[approute]: https://docs.rs/actix-web/3/actix_web/struct.App.html#method.route -[appservice]: https://docs.rs/actix-web/3/actix_web/struct.App.html?search=#method.service -[webresource]: https://docs.rs/actix-web/3/actix_web/struct.Resource.html -[resourcehandler]: https://docs.rs/actix-web/3/actix_web/struct.Resource.html#method.route -[route]: https://docs.rs/actix-web/3/actix_web/struct.Route.html -[routeguard]: https://docs.rs/actix-web/3/actix_web/struct.Route.html#method.guard -[routemethod]: https://docs.rs/actix-web/3/actix_web/struct.Route.html#method.method -[routeto]: https://docs.rs/actix-web/3/actix_web/struct.Route.html#method.to -[matchinfo]: https://docs.rs/actix-web/3/actix_web/struct.HttpRequest.html#method.match_info -[pathget]: https://docs.rs/actix-web/3/actix_web/dev/struct.Path.html#method.get -[pathstruct]: https://docs.rs/actix-web/3/actix_web/dev/struct.Path.html -[query]: https://docs.rs/actix-web/3/actix_web/web/struct.Query.html -[urlfor]: https://docs.rs/actix-web/3/actix_web/struct.HttpRequest.html#method.url_for +[approute]: https://docs.rs/actix-web/4/actix_web/struct.App.html#method.route +[appservice]: https://docs.rs/actix-web/4/actix_web/struct.App.html?search=#method.service +[webresource]: https://docs.rs/actix-web/4/actix_web/struct.Resource.html +[resourcehandler]: https://docs.rs/actix-web/4/actix_web/struct.Resource.html#method.route +[route]: https://docs.rs/actix-web/4/actix_web/struct.Route.html +[routeguard]: https://docs.rs/actix-web/4/actix_web/struct.Route.html#method.guard +[routemethod]: https://docs.rs/actix-web/4/actix_web/struct.Route.html#method.method +[routeto]: https://docs.rs/actix-web/4/actix_web/struct.Route.html#method.to +[matchinfo]: https://docs.rs/actix-web/4/actix_web/struct.HttpRequest.html#method.match_info +[pathget]: https://docs.rs/actix-web/4/actix_web/dev/struct.Path.html#method.get +[pathstruct]: https://docs.rs/actix-web/4/actix_web/dev/struct.Path.html +[query]: https://docs.rs/actix-web/4/actix_web/web/struct.Query.html +[urlfor]: https://docs.rs/actix-web/4/actix_web/struct.HttpRequest.html#method.url_for [urlobj]: https://docs.rs/url/1.7.2/url/struct.Url.html -[guardtrait]: https://docs.rs/actix-web/3/actix_web/guard/trait.Guard.html -[guardfuncs]: https://docs.rs/actix-web/3/actix_web/guard/index.html#functions -[requestextensions]: https://docs.rs/actix-web/3/actix_web/struct.HttpRequest.html#method.extensions -[implfromrequest]: https://docs.rs/actix-web/3/actix_web/trait.FromRequest.html -[implresponder]: https://docs.rs/actix-web/3/actix_web/trait.Responder.html +[guardtrait]: https://docs.rs/actix-web/4/actix_web/guard/trait.Guard.html +[guardfuncs]: https://docs.rs/actix-web/4/actix_web/guard/index.html#functions +[requestextensions]: https://docs.rs/actix-web/4/actix_web/struct.HttpRequest.html#method.extensions +[implfromrequest]: https://docs.rs/actix-web/4/actix_web/trait.FromRequest.html +[implresponder]: https://docs.rs/actix-web/4/actix_web/trait.Responder.html [pathextractor]: ../extractors diff --git a/content/docs/websockets.md b/content/docs/websockets.md index 353b4fd..86ea2e6 100644 --- a/content/docs/websockets.md +++ b/content/docs/websockets.md @@ -15,6 +15,6 @@ The following is an example of a simple websocket echo server: > An example chat server with the ability to chat over a websocket or TCP connection is available in [websocket-chat directory][chat] [message]: https://docs.rs/actix-web-actors/2/actix_web_actors/ws/enum.Message.html -[payload]: https://docs.rs/actix-web/3/actix_web/web/struct.Payload.html +[payload]: https://docs.rs/actix-web/4/actix_web/web/struct.Payload.html [examples]: https://github.com/actix/examples/tree/master/websockets [chat]: https://github.com/actix/examples/tree/master/websockets/chat