internal virtual Headers Headers(IDictionary <string, sbyte[]> headers) { Headers.Builder builder = Headers.HeadersBuilder(); foreach (KeyValuePair <string, sbyte[]> entry in headers.SetOfKeyValuePairs()) { builder.Put(HeaderFields[entry.Key], entry.Value); } return(builder.Headers()); }
protected internal override Headers InitialHeaders(long version) { Headers.Builder builder = Headers.HeadersBuilder(); //JAVA TO C# CONVERTER WARNING: Java wildcard generics have no direct equivalent in .NET: //ORIGINAL LINE: for (HeaderField<?> field : headerFields) foreach (HeaderField <object> field in HeaderFields) { PutHeader(builder, field); } return(builder.Headers()); }
internal Headers UpdateHeaders(System.Action <Headers.Builder> headersUpdater) { Headers.Builder builder = new Headers.Builder(Headers.Copy(PreState.headers())); headersUpdater(builder); return(builder.Headers()); }