예제 #1
0
        public Task <IHttpResponse> OptionsAsync(string relativeUrl, object segments = null)
        {
            var merged  = BuildRelativeResource(relativeUrl, segments);
            var request = new OptionsRequest(merged);

            return(RunAsync(request));
        }
예제 #2
0
        public Task <IHttpResponse> Options(string relativeUrl, object segments = null, CancellationToken cancellationToken = default(CancellationToken))
        {
            var merged  = BuildRelativeResource(relativeUrl, segments);
            var request = new OptionsRequest(merged);

            return(Run(request, cancellationToken));
        }