public void SingleLanguage() { ContentLanguageBuilder b = new ContentLanguageBuilder(); b.Add("da-DK"); Assert.Equal("da-DK", b.Build()); }
public GetObjectRequest(string bucketName, string resource) : base(HttpMethod.GET, bucketName, resource) { Range = new RangeBuilder(); IfETagMatch = new ETagBuilder(); IfETagNotMatch = new ETagBuilder(); ResponseCacheControl = new CacheControlBuilder(); ResponseContentType = new ContentTypeBuilder(); ResponseContentDisposition = new ContentDispositionBuilder(); ResponseContentLanguage = new ContentLanguageBuilder(); ResponseContentEncoding = new ContentEncodingBuilder(); }
public void EnumLanguages() { ContentLanguageBuilder b = new ContentLanguageBuilder(); b.Add(Language.French); b.Add(Language.German); Assert.Equal("fr, de", b.Build()); b.Reset(); Assert.Null(b.Build()); }
public void MultipleLanguages() { ContentLanguageBuilder b = new ContentLanguageBuilder(); b.Add("da-DK"); b.Add("en-US"); Assert.Equal("da-DK, en-US", b.Build()); b.Reset(); Assert.Null(b.Build()); }
internal HeadObjectRequest() : base(HttpMethod.HEAD) { Range = new RangeBuilder(); IfETagMatch = new ETagBuilder(); IfETagNotMatch = new ETagBuilder(); ResponseCacheControl = new CacheControlBuilder(); ResponseContentType = new ContentTypeBuilder(); ResponseContentDisposition = new ContentDispositionBuilder(); ResponseContentLanguage = new ContentLanguageBuilder(); ResponseContentEncoding = new ContentEncodingBuilder(); }
internal HeadObjectRequest(HttpMethodType method) : base(method) { Range = new RangeBuilder(); IfETagMatch = new ETagBuilder(); IfETagNotMatch = new ETagBuilder(); ResponseCacheControl = new CacheControlBuilder(); ResponseContentType = new ContentTypeBuilder(); //Amazon does not support the extended filename RFC in their presigned requests ContentDispositionOptions contentDisp = new ContentDispositionOptions(); contentDisp.UseExtendedFilename = false; ResponseContentDisposition = new ContentDispositionBuilder(Options.Create(contentDisp)); ResponseContentLanguage = new ContentLanguageBuilder(); ResponseContentEncoding = new ContentEncodingBuilder(); }