public static MessageConstraints.Builder Copy(Org.Apache.Http.Config.MessageConstraints
                                               config)
 {
     Args.NotNull(config, "Message constraints");
     return(new MessageConstraints.Builder().SetMaxHeaderCount(config.GetMaxHeaderCount
                                                                   ()).SetMaxLineLength(config.GetMaxLineLength()));
 }
Exemplo n.º 2
0
 internal ConnectionConfig(int bufferSize, int fragmentSizeHint, Encoding charset,
                           CodingErrorAction malformedInputAction, CodingErrorAction unmappableInputAction,
                           MessageConstraints messageConstraints) : base()
 {
     this.bufferSize            = bufferSize;
     this.fragmentSizeHint      = fragmentSizeHint;
     this.charset               = charset;
     this.malformedInputAction  = malformedInputAction;
     this.unmappableInputAction = unmappableInputAction;
     this.messageConstraints    = messageConstraints;
 }
Exemplo n.º 3
0
 public virtual ConnectionConfig.Builder SetMessageConstraints(MessageConstraints
                                                               messageConstraints)
 {
     this.messageConstraints = messageConstraints;
     return(this);
 }