text: //
  //  TiRESTServer.h
  //  TiREST
  //
  //  Created by Kota Mizushima on 12/06/20.
  //
  //
  
  #import <Foundation/Foundation.h>
  #import "TRRoutableHTTPConnection.h"
  
  @interface TRTiRESTServer : NSObject {
  	__unsafe_unretained Class routerClass_;
  	NSString* protocolType_;
  }
  
  @property (nonatomic, unsafe_unretained) Class routerClass;
  @property (nonatomic) NSString* protocolType;
  
  - (id)init:(NSUInteger)port useBonjour:(BOOL)useBonjour documentRoot:(NSString*)documentRoot routerClass:(Class)routerClass;
  
  - (id)init:(NSUInteger)port routerClass:(Class)routerClass;
  
  - (BOOL)start:(NSError *__autoreleasing *)error;
  
  - (void)stop;
  	
  + (TRTiRESTServer*)newServer:(NSUInteger)port useBonjour:(BOOL)useBonjour documentRoot:(NSString*)documentRoot routerClass:(Class)routerClass;
  
  + (TRTiRESTServer*)newServer:(NSUInteger)port routerClass:(Class)routerClass;
  
  + (NSString*)defaultProtocolType;
  
  + (void)setDefaultProtocolType:(NSString*)defaultProtocolType;
  
  @end
  