question: public void reply ( List < String > responseHeaders , boolean out ) throws IOException { assert ( ! Thread . holdsLock ( SpdyStream . this ) ) ; boolean outFinished = false ; synchronized ( this ) { if ( responseHeaders == null ) { throw new NullPointerException ( "responseHeaders == null" ) ; } if ( isLocallyInitiated ( ) ) { throw new IllegalStateException ( "cannot reply to a locally initiated stream" ) ; } if ( this . responseHeaders != null ) { throw new IllegalStateException ( "reply already sent" ) ; } this . responseHeaders = responseHeaders ; if ( ! out ) { this . out . finished = true ; outFinished = true ; } } connection . writeSynReply ( id , outFinished , responseHeaders ) ; }
target:  Sends a reply to an incoming stream.