Build the Http Server.

@return React\Socket\Server
354427
protected function bootHttpServer()
    {
        return $this->server = new IoServer(
            new HttpServer(
                new WsServer(
                    new WampServer(
                        $this->Dispatcher
                    )
                )
            ), $this->ws
        );
    }
233653
public function build()
    {
        $soapClientFactory = new SoapClientFactory();
        $soapClient = $soapClientFactory->create($this->wsdl);

        return new Client($soapClient);
    }
865215
public function build()
    {
        if (isset($this->styles)) {
            return $this->styles;
        }

        $this->styles = BuildUtil::removeNullElements([
            'header' => BuildUtil::build($this->headerStyleBuilder),
            'hero' => BuildUtil::build($this->heroStyleBuilder),
            'body' => BuildUtil::build($this->bodyStyleBuilder),
            'footer' => BuildUtil::build($this->footerStyleBuilder),
        ]);

        return $this->styles;
    }
534949
protected function createServer()
    {
        $config = $this->getServerInitConfig();
        $this->swooleServer = new \swoole_http_server($config['host'], $config['port'], $config['mode'], $config['sockType']);
    }
1308755
public function createRequest()
    {
        return $this->httpClient->createRequest(
            $this->getMethod(),
            $this->getUrl(),
            $this->getPreparedHeaders(),
            $this->getPreparedData()
        );
    }
517241
public function getServer(): Server
    {
        if ($this->serverHostname instanceof \Closure) {
            $server = call_user_func($this->serverHostname);
        } else {
            if ($this->isOnCluster()) {
                /*
                 * If no server provided, will take random server from cluster
                 */
                if (is_null($this->serverHostname)) {
                    $server = $this->serverProvider->getRandomServerFromCluster($this->getClusterName());
                    $this->serverHostname = $server->getHost();
                } else {
                    $server = $this->serverProvider->getServerFromCluster(
                        $this->getClusterName(),
                        $this->serverHostname
                    );
                }
            } else {
                /*
                 * If no server provided, will take random server from cluster
                 */
                if (is_null($this->serverHostname)) {
                    $server = $this->serverProvider->getRandomServer();
                    $this->serverHostname = $server->getHost();
                } else {
                    $server = $this->serverProvider->getServer($this->serverHostname);
                }
            }
        }
        
        return $server;
    }
755724
protected function getHttpClient()
    {
        if ($this->httpClient === null) {
            $this->httpClient = new Client($this->guzzle);
        }

        return $this->httpClient;
    }
62595
protected function createClient()
    {
        $this->client = new OAuthServer([
            'identifier' => Configuration::get('key'),
            'secret' => Configuration::get('secret'),
            'callback_uri' => Configuration::get('callbackUrl'),
            'name' => Configuration::get('name'),
            'expiration' => Configuration::get('expiration'),
            'scope' => Configuration::get('scope'),
        ]);

        return $this;
    }
860933
public function build(): SetExtraHTTPHeadersRequest
	{
		$instance = new SetExtraHTTPHeadersRequest();
		if ($this->headers === null) {
			throw new BuilderException('Property [headers] is required.');
		}
		$instance->headers = $this->headers;
		return $instance;
	}
919173
Function<TcpClient, TcpClient> build() {
		HttpResponseDecoderSpec decoder = new HttpResponseDecoderSpec();
		decoder.initialBufferSize = initialBufferSize;
		decoder.maxChunkSize = maxChunkSize;
		decoder.maxHeaderSize = maxHeaderSize;
		decoder.maxInitialLineLength = maxInitialLineLength;
		decoder.validateHeaders = validateHeaders;
		decoder.failOnMissingResponse = failOnMissingResponse;
		decoder.parseHttpAfterConnectRequest = parseHttpAfterConnectRequest;
		return tcp -> tcp.bootstrap(b -> HttpClientConfiguration.decoder(b, decoder));
	}
1102785
public function build()
    {
        $settings = [];
        foreach ($this->settings as $name => $options) {
            if (isset($options['dsn'])) {
                unset(
                    $options['scheme'],
                    $options['host'],
                    $options['port'],
                    $options['path']
                );

                $parsedDsn = parse_url($options['dsn']);
                unset($options['dsn']);
                if ($parsedDsn) {
                    $options['scheme'] = isset($parsedDsn['scheme']) ? $parsedDsn['scheme'] : 'http';
                    if (isset($parsedDsn['host'])) {
                        $options['host'] = $parsedDsn['host'];
                    }
                    if (isset($parsedDsn['user'])) {
                        $auth = $parsedDsn['user'] . (isset($parsedDsn['pass']) ? ':' . $parsedDsn['pass'] : '');
                        $options['host'] = $auth . '@' . $options['host'];
                    }
                    $options['port'] = isset($parsedDsn['port']) ? $parsedDsn['port'] : 80;
                    $options['path'] = isset($parsedDsn['path']) ? $parsedDsn['path'] : '';
                }
            }

            $settings[$name] = $options;
        }

        $solariumClient = new Client(array('endpoint' => $settings), $this->eventDispatcher);
        foreach ($this->plugins as $pluginName => $plugin) {
            $solariumClient->registerPlugin($pluginName, $plugin);
        }

        return $solariumClient;
    }
1247211
public function getHttpClient()
    {
        if (!is_null($this->httpClient)) {
            return $this->httpClient;
        }

        return $this->httpClient = new Client([
            'base_uri' => $this->storageUrl(),
            'headers' => [
                'X-Auth-Token' => $this->token(),
            ],
        ]);
    }
182117
public static function create()
    {
        $request = self::makeRequest();
        $response = self::makeResponse();

        return self::buildProvidersContainer($request, $response);
    }
606930
public function build()
    {
        return $this->subject('Contact Us - ' . config('app.name'))
            ->to($this->contactUs->email, $this->contactUs->fullname)
            ->markdown('titan::emails.contactus_client');
    }
761751
public function build()
    {
        $soapClientFactory = new SoapClientFactory();
        $soapClient = $soapClientFactory->factory($this->wsdl, $this->soapOptions);

        $client = new Client($soapClient, $this->username, $this->password, $this->token);

        if ($this->log) {
            $logPlugin = new LogPlugin($this->log);
            $client->getEventDispatcher()->addSubscriber($logPlugin);
        }

        return $client;
    }
329783
private function bootIoServer()
    {
        $context = [
            'tls' => $this->tls,
        ];
        $socket = new SocketServer($this->host.':'.$this->port, $this->getEventLoop(), $context);

        return new IoServer(
            $this->serverInstance,
            $socket,
            $this->getEventLoop()
        );
    }
830989
public function server()
    {
        if ($this->server != null) {
            return $this->server;
        }

        return $this->server = $this->createServer();
    }