コード例 #1
0
 public CompositeRequestTargetEscaper(
     IRequestTargetEscaper rfc3986Escaper,
     IRequestTargetEscaper rfc2396Escaper,
     IRequestTargetEscaper unescapedEscaper,
     IRequestTargetEscaper originalStringEscaper)
 {
     _rfc3986Escaper        = rfc3986Escaper ?? throw new ArgumentNullException(nameof(rfc3986Escaper));
     _rfc2396Escaper        = rfc2396Escaper ?? throw new ArgumentNullException(nameof(rfc2396Escaper));
     _unescapedEscaper      = unescapedEscaper ?? throw new ArgumentNullException(nameof(unescapedEscaper));
     _originalStringEscaper = originalStringEscaper ?? throw new ArgumentNullException(nameof(originalStringEscaper));
 }
コード例 #2
0
 public HeaderAppenderFactory(IRequestTargetEscaper requestTargetEscaper)
 {
     _requestTargetEscaper = requestTargetEscaper ?? throw new ArgumentNullException(nameof(requestTargetEscaper));
 }
コード例 #3
0
 public RequestTargetHeaderAppender(HttpRequestForSignatureString request, RequestTargetEscaping requestTargetEscaping, IRequestTargetEscaper requestTargetEscaper)
 {
     _request = request ?? throw new ArgumentNullException(nameof(request));
     _requestTargetEscaping = requestTargetEscaping;
     _requestTargetEscaper  = requestTargetEscaper ?? throw new ArgumentNullException(nameof(requestTargetEscaper));
 }