Commit Graph
3 Commits
Author SHA1 Message Date
Peter Adams 1118370ec4 Apply swift-format changes and CI (#472)
Motivation:

Standardised formatting makes the project cleaner to look at and work
on.

Modifications:

Setup swift-format with the same settings as Swift-NIO

Result:

Common formatting throughout
2024-10-29 13:09:54 +00:00
George Barnett 7774067c43 Add properties to HTTP2StreamID to determine stream initiator (#259)
Motivation:

It's not possible (at least trivially) from the public API to determine
which peer in a connection initiated a given stream ID. In some cases
it's possible with prior knowledge (i.e. in a given application the
client may always initiate streams), however, such conditions aren't
guaranteed to always hold.

Modifications:

- Add `isClientInitiated` and `isServerInitiated` computed properties to
  `HTTP2StreamID`.
- Add a few tests.

Result:

Users can easily get the answer to the question 'did a client/server
create this stream?'
2020-11-24 14:41:26 +00:00
Cory Benfield dad9eee427 Add Strideable conformance to HTTP2StreamID (#133)
Motivation:

While working on other tests I realised that HTTP2StreamID is a type
that can meaningfully be strided, but it does not conform to Strideable.
We may as well add that conformance.

Modifications:

- Added Strideable conformance to HTTP2StreamID.

Result:

Users can stride over HTTP2StreamIDs.
2019-05-26 10:24:10 +01:00