class Cryload::LoadGenerator::Worker

Overview

Everything a worker fiber owns exclusively: its keep-alive clients, its scratch buffer for draining response bodies, its own copy of the request headers (HTTP::Request mutates them) and its own PRNG.

Defined in:

cryload/load_generator.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(headers : HTTP::Headers) #

Instance Method Detail

def buffer : Bytes #

def clients : Hash(String, Cryload::PhasedClient) #

def close : Nil #

def evict(origin : String) : Nil #

def headers : HTTP::Headers #

def random : Random #