Exemplo n.º 1
0
        protected internal virtual HttpConfiguration CreateHttpConfig()
        {
            HttpConfiguration httpConfig = new HttpConfiguration();

            httpConfig.RequestHeaderSize  = _configuration.get(ServerSettings.maximum_request_header_size);
            httpConfig.ResponseHeaderSize = _configuration.get(ServerSettings.maximum_response_header_size);
            httpConfig.SendServerVersion  = false;
            return(httpConfig);
        }
Exemplo n.º 2
0
        public override void Customize(Connector connector, HttpConfiguration channelConfig, Request request)
        {
            request.Scheme = HttpScheme.HTTPS.asString();

            AddResponseFieldIfConfigured(request, _hstsResponseField);
        }
Exemplo n.º 3
0
 public JettyHttpConnectionFactory(NetworkConnectionTracker connectionTracker, HttpConfiguration configuration) : base(configuration)
 {
     this._connectionTracker  = connectionTracker;
     this._connectionListener = new JettyHttpConnectionListener(connectionTracker);
 }
Exemplo n.º 4
0
 public JettyHttpConnection(string id, HttpConfiguration config, Connector connector, EndPoint endPoint, HttpCompliance compliance, bool recordComplianceViolations) : base(config, connector, endPoint, compliance, recordComplianceViolations)
 {
     this._id          = id;
     this._connectTime = DateTimeHelper.CurrentUnixTimeMillis();
 }