IPWorks Cloud 2020 iOS Edition

Questions / Feedback?

useVirtualHosting (property)

Determines which URL style to use when making requests.

Syntax

@property (nonatomic,readwrite,assign,getter=useVirtualHosting,setter=setUseVirtualHosting:) BOOL useVirtualHosting;
- (BOOL)useVirtualHosting;
- (void)setUseVirtualHosting:(BOOL)newUseVirtualHosting;
public var useVirtualHosting: Bool {
  get {...}
set {...} }

Default Value

TRUE

Remarks

If true (default), virtual-hosted-style URLs will be used to make requests: http://yourbucket.s3.amazonaws.com/yourobject. Note that hosted-style URLs impose more bucket name restrictions due to DNS server naming restrictions. Refer to Amazon's documentation for more information.

If false, path-style URLs will be used to make requests: http://s3.amazonaws.com/yourbucket/yourobject.

Important: Amazon has publicly announced that buckets created after September 30, 2020 will only support virtual-hosted-style URLs. Buckets created on or before September 30, 2020 will continue to support both URL styles.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 iOS Edition - Version 20.0 [Build 8265]