---
title: "Method"
url: https://una-lang.org/en/docs/std/host/Method/
release: v0.4.0
edition: "0.4, 0.5 preview"
source: https://github.com/una-lang/una/blob/v0.4.0/docs/std/listing.json
---

# Method

A kind of the module `std.host`, which a module imports by name; the prelude does not put it in scope ([`spec/31 §1`](https://una-lang.org/en/docs/spec/31-http-servers/1-the-capability/#s1)). Edition 0.4, 0.5 preview.

```una
pub kind Method = Get | Head | Post | Put | Patch | Delete | Options
```

The methods a request may have (`spec/31 §1`, ADR 0123 rule 1). The host answers any other with `501`.

## Specification

- [`spec/31 §1`](https://una-lang.org/en/docs/spec/31-http-servers/1-the-capability/#s1)

Generated from the standard modules of una v0.4.0 ([`docs/std/listing.json`](https://github.com/una-lang/una/blob/5fec93d88932b333feec25e589355a2cb34c37b5/docs/std/listing.json), which is not part of the specification). The specification governs: [`spec/14 §1`](https://una-lang.org/en/docs/spec/14-standard-library/#s1).
