title: alamofire responseStreamString decode
body: <p>recently started learning Swift :)</p>
  
  <pre><code>let req = AF.streamRequest(...)
  req.responseStreamString { stream in
      switch stream.event {
      case let .stream(result):
            switch result {
            case let .success(string):
              print(string)
            case let .failure(error):
              print("failure")
                print(error)
            }
      case .complete(_): //
          print("complete")
      }
  </code></pre>
  
  <p>How do I get to the actual value I need without having to say picking out line 4 each time?</p>
  
  <p>This is the output from <code>print(string)</code></p>
  
  <pre><code>--eventStreamBoundary
  Content-Type: text/plain
  Content-Length: 23
  20200428124609 5 X NULL
  </code></pre>
  
  <p><code>20200428124609 5 X NULL</code> is the value I am after, do i need a custom decode or something built in already exists?</p>
  
  <p>thank you</p>