Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add session on ProxyHttp#new_ctx function #329

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

taikulawo
Copy link

  1. Add session when call new_ctx
    we need some args when create new_ctx
  2. make HttpProxy#new public
    We don't create service, just call Service::handle_event with our custom Box<dyn IO>
    How to get additional input when call new_ctx? #316
  3. make from_wire_selected public
    we use custom Box<dyn IO>, so we need create ALPN
impl<T> Ssl for PingoraStream<T> {
    fn get_ssl_digest(&self) -> Option<Arc<pingora::protocols::ssl::SslDigest>> {
        None
    }
    fn selected_alpn_proto(&self) -> Option<ALPN> {
        self.tls_info
            .as_ref()
            .and_then(|c| c.selected_alpn.as_ref())
            .and_then(|f| ALPN::from_wire_selected(f))
    }
}

@eaufavor eaufavor added documentation Improvements or additions to documentation enhancement New feature or request and removed documentation Improvements or additions to documentation labels Jul 26, 2024
@drcaramelsyrup drcaramelsyrup self-assigned this Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants