Struct HttpConfig Copy item path Source pub struct HttpConfig {
pub port: Option <u16 >,
pub args: Vec <String >,
pub fresh: Vec <String >,
pub pace_ms: Option <u64 >,
pub ready_secs: Option <u64 >,
pub ready_request: Option <String >,
}Expand description http in rust/app-cases/rust-anything.json: the app is a server.
A port the original always listens on. When unset, every start gets a free port through
the PORT environment variable and {port} in the command.
Arguments every start gets after its command: the original’s and every build’s.
Repository paths copied (from the snapshot in http/files/) into a fresh working
directory before every start, so state the server writes never leaks between runs.
Milliseconds to wait after each response before the next request.
Seconds to wait for the server to listen before giving up (app record --ready-timeout).
Unset keeps the default, READY.
A request that says the app is ready once it answers (app record --ready GET /health).
Without it, an open port counts as ready.
Performs copy-assignment from
source.
Read more Formats the value using the given formatter.
Read more Returns the “default value” for a type.
Read more Deserialize this value from the given Serde deserializer.
Read more Serialize this value into the given Serde serializer.
Read more Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more Returns the argument unchanged.
Converts to this type from the input type within the given allocator.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
Converts this type into the (usually inferred) input type within the given allocator.
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer.
Read more Mutably dereferences the given pointer.
Read more Drops the object pointed to by the given pointer.
Read more The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.