Interface HttpHandler

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface HttpHandler
    http 处理器
    Author:
    L.cm
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.tio.http.common.HttpResponse apply​(org.tio.http.common.HttpRequest request)
      处理请求
    • Method Detail

      • apply

        org.tio.http.common.HttpResponse apply​(org.tio.http.common.HttpRequest request)
                                        throws Exception
        处理请求
        Parameters:
        request - HttpRequest
        Returns:
        可以为null
        Throws:
        Exception - Exception