Imbolc

Results 66 comments of Imbolc

Hey :) Would you provide a PR?

Extractors implement [FromRequest](https://docs.rs/axum/latest/axum/extract/trait.FromRequest.html)

From the docs it seems that you have to implement `tower_http::request_id::SetRequestId` yourself, while this crate provides you with a ready to use middleware.

Yeah, seems so. I've just skimmed the docs once more, they also accept id from headers, so it can be created on a client. I wouldn't create this crate if...

It could be done with a trait object, but I'm afraid `std::io::Write` wont be enough, as it consumes just bytes. Journald stores structured data so it would need log level...

I found it's easy to make it with tracing, in case someone else will need this: https://gist.github.com/imbolc/f75f924f66c129f0e1e910f59fb75c0d

> agree the docs could be expanded but please keep the reference in to the `closest` method and mention that all the other keywords are followed by CSS selectors Sure,...

We can make the middleware more selective, so it would add Vary headers only when corresponding extractors are used. For it would add `Vary: HX-Request` only if `HxRequest` extractor has...

> I prefer to rely on the redb API. I'm totally ok with following redb naming. But what about upgrading the db on create then? Only the `open` calls `upgrade::upgrade_underlying_database`,...

Thanks, it works :) I see mention of this in the docs in CookieJar section. Actually I was looking for answer in the docs before I asked here, but I...