Class HttpClientRequest

java.lang.Object
cool.scx.http.x.HttpClientRequest
All Implemented Interfaces:
cool.scx.http.headers.ScxHttpHeadersReadHelper, cool.scx.http.headers.ScxHttpHeadersWriteHelper<cool.scx.http.ScxHttpClientRequest>, cool.scx.http.ScxHttpClientRequest, cool.scx.http.sender.ScxHttpSender<cool.scx.http.ScxHttpClientResponse>, Http1ClientRequest

public class HttpClientRequest extends Object implements Http1ClientRequest
todo 待完成
Version:
0.0.1
Author:
scx567888
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected cool.scx.http.headers.ScxHttpHeadersWritable
     
    protected cool.scx.http.method.ScxHttpMethod
     
     
    protected cool.scx.http.uri.ScxURIWritable
     
    protected cool.scx.http.version.HttpVersion
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    cool.scx.http.headers.ScxHttpHeadersWritable
     
    cool.scx.http.ScxHttpClientRequest
    headers(cool.scx.http.headers.ScxHttpHeaders headers)
     
    cool.scx.http.method.ScxHttpMethod
     
    cool.scx.http.ScxHttpClientRequest
    method(cool.scx.http.method.ScxHttpMethod method)
     
     
     
    cool.scx.http.ScxHttpClientResponse
    send(cool.scx.http.media.MediaWriter writer)
     
    cool.scx.http.uri.ScxURIWritable
    uri()
     
    cool.scx.http.ScxHttpClientRequest
    uri(cool.scx.http.uri.ScxURI uri)
     
    cool.scx.http.version.HttpVersion
     
    cool.scx.http.ScxHttpClientRequest
    version(cool.scx.http.version.HttpVersion version)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface cool.scx.http.ScxHttpClientRequest

    method, uri

    Methods inherited from interface cool.scx.http.headers.ScxHttpHeadersReadHelper

    contentEncoding, contentLength, contentType, cookies, getCookie, getHeader, getHeader, getSetCookie, setCookies

    Methods inherited from interface cool.scx.http.headers.ScxHttpHeadersWriteHelper

    addCookie, addHeader, addHeader, addSetCookie, contentEncoding, contentLength, contentType, removeCookie, removeHeader, removeHeader, removeSetCookie, setHeader, setHeader

    Methods inherited from interface cool.scx.http.sender.ScxHttpSender

    send, send, send, send, send, send, send, send, send, send, send, sendEventStream, sendGzip
  • Field Details

    • version

      protected cool.scx.http.version.HttpVersion version
    • method

      protected cool.scx.http.method.ScxHttpMethod method
    • uri

      protected cool.scx.http.uri.ScxURIWritable uri
    • headers

      protected cool.scx.http.headers.ScxHttpHeadersWritable headers
    • requestTargetForm

      protected RequestTargetForm requestTargetForm
  • Constructor Details

    • HttpClientRequest

      public HttpClientRequest(HttpClient httpClient)
  • Method Details

    • send

      public cool.scx.http.ScxHttpClientResponse send(cool.scx.http.media.MediaWriter writer) throws cool.scx.http.sender.HttpSendException
      Specified by:
      send in interface cool.scx.http.ScxHttpClientRequest
      Specified by:
      send in interface cool.scx.http.sender.ScxHttpSender<cool.scx.http.ScxHttpClientResponse>
      Throws:
      cool.scx.http.sender.HttpSendException
    • version

      public cool.scx.http.version.HttpVersion version()
      Specified by:
      version in interface cool.scx.http.ScxHttpClientRequest
    • method

      public cool.scx.http.method.ScxHttpMethod method()
      Specified by:
      method in interface cool.scx.http.ScxHttpClientRequest
    • uri

      public cool.scx.http.uri.ScxURIWritable uri()
      Specified by:
      uri in interface cool.scx.http.ScxHttpClientRequest
    • headers

      public cool.scx.http.headers.ScxHttpHeadersWritable headers()
      Specified by:
      headers in interface cool.scx.http.ScxHttpClientRequest
      Specified by:
      headers in interface cool.scx.http.headers.ScxHttpHeadersReadHelper
      Specified by:
      headers in interface cool.scx.http.headers.ScxHttpHeadersWriteHelper<cool.scx.http.ScxHttpClientRequest>
    • version

      public cool.scx.http.ScxHttpClientRequest version(cool.scx.http.version.HttpVersion version)
      Specified by:
      version in interface cool.scx.http.ScxHttpClientRequest
    • method

      public cool.scx.http.ScxHttpClientRequest method(cool.scx.http.method.ScxHttpMethod method)
      Specified by:
      method in interface cool.scx.http.ScxHttpClientRequest
    • uri

      public cool.scx.http.ScxHttpClientRequest uri(cool.scx.http.uri.ScxURI uri)
      Specified by:
      uri in interface cool.scx.http.ScxHttpClientRequest
    • headers

      public cool.scx.http.ScxHttpClientRequest headers(cool.scx.http.headers.ScxHttpHeaders headers)
      Specified by:
      headers in interface cool.scx.http.ScxHttpClientRequest
    • requestTargetForm

      public RequestTargetForm requestTargetForm()
      Specified by:
      requestTargetForm in interface Http1ClientRequest
    • requestTargetForm

      public HttpClientRequest requestTargetForm(RequestTargetForm requestTargetForm)
      Specified by:
      requestTargetForm in interface Http1ClientRequest