예제 #1
0
 /// <summary>
 /// Sets the Via header of the request to the specified protocol version, received by, protocol name, and comment.
 /// </summary>
 /// <param name="protocolVersion">The Via header protocol version.</param>
 /// <param name="receivedBy">The Via header received by.</param>
 /// <param name="protocolName">The Via header protocol name.</param>
 /// <param name="comment">The Via header comment.</param>
 /// <returns>An <see cref="IRequest"/> object that represents the request.</returns>
 public static IRequest Via(this IWith @this, string protocolVersion, string receivedBy, string protocolName, string comment)
 => @this.Via(new ViaHeaderValue(protocolVersion, receivedBy, protocolName, comment));
예제 #2
0
 /// <summary>
 /// Sets the Via header of the request to the specified protocol version and received by.
 /// </summary>
 /// <param name="protocolVersion">The Via header protocol version.</param>
 /// <param name="receivedBy">The Via header received by.</param>
 /// <returns>An <see cref="IRequest"/> object that represents the request.</returns>
 public static IRequest Via(this IWith @this, string protocolVersion, string receivedBy)
 => @this.Via(new ViaHeaderValue(protocolVersion, receivedBy));