HttpMethod

@Serializable
value class HttpMethod(val value: String)

An HTTP method (verb), modeled after Ktor's own io.ktor.http.HttpMethod.

devview-networkmock-core has no dependency on Ktor — only devview-networkmock-ktor does — so this type exists to give Operation.method the same open, ordered shape Ktor's type has (companion constants plus DefaultMethods) without leaking a Ktor dependency onto devview-networkmock, the Compose UI module -core exists to decouple from the transport.

A JvmInline wrapper over the raw method name — any value is representable, so a spec declaring a non-standard verb still round-trips, it just won't appear in DefaultMethods' canonical ordering.

Constructors

Link copied to clipboard
constructor(value: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The uppercase method name (e.g. "GET").

Functions

Link copied to clipboard
open override fun toString(): String