code: public static THttpService of(Object implementation,
                                    SerializationFormat defaultSerializationFormat) {
  
          return new THttpService(ThriftCallService.of(implementation),
                                  newAllowedSerializationFormats(defaultSerializationFormat,
                                                                 ThriftSerializationFormats.values()));
      }
docs: Creates a new {@link THttpService} with the specified service implementation, supporting all thrift
  protocols and defaulting to the specified {@code defaultSerializationFormat} when the client doesn't
  specify one.
  
  <p>Currently, the only way to specify a serialization format is by using the HTTP session
  protocol and setting the Content-Type header to the appropriate {@link SerializationFormat#mediaType()}.
  
  
  @param implementation an implementation of {@code *.Iface} or {@code *.AsyncIface} service interface
  generated by the Apache Thrift compiler
  @param defaultSerializationFormat the default serialization format to use when not specified by the
  client