MCPcopy Create free account

hub / github.com/curtcox/JLHTTP / functions

Functions145 in github.com/curtcox/JLHTTP

↓ 1 callersMethodtoSizeApproxString
Returns a human-friendly string approximating the given data size, e.g. "316", "1.8K", "324M", etc. @param size the size to display @return a human-f
src/main/java/net/freeutils/httpserver/HTTPServer.java:2635
↓ 1 callersMethodtrimLeft
Returns the given string with all occurrences of the given character removed from its left side. @param s the string to trim @param c the character t
src/main/java/net/freeutils/httpserver/HTTPServer.java:2601
↓ 1 callersMethodwriteTrailingChunk
Writes the trailing chunk which marks the end of the stream. @param headers the (optional) trailing headers to write, or null @throws IOException if
src/main/java/net/freeutils/httpserver/HTTPServer.java:430
MethodChunkedInputStream
Constructs a ChunkedInputStream with the given underlying stream, and a headers container to which the stream's trailing headers will be added. @para
src/main/java/net/freeutils/httpserver/HTTPServer.java:316
MethodChunkedOutputStream
Constructs a ChunkedOutputStream with the given underlying stream. @param out the underlying output stream to which the chunked stream is writ
src/main/java/net/freeutils/httpserver/HTTPServer.java:397
MethodContextInfo
Constructs a ContextInfo with the given context path. @param path the context path (without trailing slash)
src/main/java/net/freeutils/httpserver/HTTPServer.java:799
MethodFileContextHandler
(File dir)
src/main/java/net/freeutils/httpserver/HTTPServer.java:1057
MethodHTTPServer
Constructs an HTTPServer which can accept connections on the given port. Note: the {@link #start()} method must be called to start accepting connectio
src/main/java/net/freeutils/httpserver/HTTPServer.java:1917
MethodHeader
Constructs a header with the given name and value. Leading and trailing whitespace are trimmed. @param name the header name @param value the header v
src/main/java/net/freeutils/httpserver/HTTPServer.java:1119
MethodLimitedInputStream
Constructs a LimitedInputStream with the given underlying input stream and limit. @param in the underlying input stream @param limit the maximum numb
src/main/java/net/freeutils/httpserver/HTTPServer.java:247
MethodMethodContextHandler
(Method m, Object obj)
src/main/java/net/freeutils/httpserver/HTTPServer.java:1080
MethodMultipartInputStream
Constructs a MultipartInputStream with the given underlying stream. @param in the underlying multipart stream @param boundary the multipart boundary
src/main/java/net/freeutils/httpserver/HTTPServer.java:509
MethodMultipartIterator
Creates a new MultipartIterator from the given request. @param req the multipart/form-data request @throws IOException if an IO error occurs @throws
src/main/java/net/freeutils/httpserver/HTTPServer.java:740
MethodRequest
Constructs a Request from the data in the given input stream. @param in the input stream from which the request is read @throws IOException if an err
src/main/java/net/freeutils/httpserver/HTTPServer.java:1338
MethodResponse
Constructs a Response whose output is written to the given stream. @param out the stream to which the response is written
src/main/java/net/freeutils/httpserver/HTTPServer.java:1586
MethodVirtualHost
Constructs a VirtualHost with the given name. @param name the host's name, or null if it is the default host
src/main/java/net/freeutils/httpserver/HTTPServer.java:851
MethodaddAlias
Adds an alias for this host. @param alias the alias
src/main/java/net/freeutils/httpserver/HTTPServer.java:870
MethodaddContexts
Adds contexts for all methods of the given object that are annotated with the {@link Context} annotation. @param o the object whose annotated methods
src/main/java/net/freeutils/httpserver/HTTPServer.java:984
Methodavailable
()
src/main/java/net/freeutils/httpserver/HTTPServer.java:280
Methodavailable
()
src/main/java/net/freeutils/httpserver/HTTPServer.java:546
Methodclose
()
src/main/java/net/freeutils/httpserver/HTTPServer.java:291
Methodclose
Writes the trailing chunk if necessary, and closes the underlying stream. @throws IOException if an error occurs
src/main/java/net/freeutils/httpserver/HTTPServer.java:474
MethodgetBody
Returns the part's body (form field value). @return the part's body
src/main/java/net/freeutils/httpserver/HTTPServer.java:714
MethodgetContext
Returns the context handler for the given path. <p> If a context is not found for the given path, the search is repeated for its parent path, and so o
src/main/java/net/freeutils/httpserver/HTTPServer.java:947
MethodgetFilename
Returns the part's filename (original filename entered in file form field). @return the part's filename, or null if there is none
src/main/java/net/freeutils/httpserver/HTTPServer.java:700
MethodgetHeaders
Returns the part's headers. @return the part's headers
src/main/java/net/freeutils/httpserver/HTTPServer.java:707
MethodgetName
Returns the part's name (form field name). @return the part's name
src/main/java/net/freeutils/httpserver/HTTPServer.java:693
MethodgetName
Returns this host's name. @return this host's name, or null if it is the default host
src/main/java/net/freeutils/httpserver/HTTPServer.java:861
MethodgetParams
Returns the request parameters, which are parsed both from the query part of the request URI, and from the request body if its content type is "applic
src/main/java/net/freeutils/httpserver/HTTPServer.java:1497
MethodgetPath
Returns the context path. @return the context path, or null if there is none
src/main/java/net/freeutils/httpserver/HTTPServer.java:808
MethodgetString
Returns the part's body as a string. If the part headers do not specify a charset, UTF-8 is used. @return the part's body as a string @throws IOExcep
src/main/java/net/freeutils/httpserver/HTTPServer.java:723
Methodmain
Starts a stand-alone HTTP server, serving files from disk. @param args the command line arguments
src/main/java/net/freeutils/httpserver/HTTPServer.java:3050
MethodmarkSupported
()
src/main/java/net/freeutils/httpserver/HTTPServer.java:286
MethodmarkSupported
()
src/main/java/net/freeutils/httpserver/HTTPServer.java:551
Methodread
()
src/main/java/net/freeutils/httpserver/HTTPServer.java:321
Methodread
()
src/main/java/net/freeutils/httpserver/HTTPServer.java:520
Methodremove
()
src/main/java/net/freeutils/httpserver/HTTPServer.java:775
Methodrun
()
src/main/java/net/freeutils/httpserver/HTTPServer.java:1868
Methodserve
(Request req, Response resp)
src/main/java/net/freeutils/httpserver/HTTPServer.java:1061
Methodserve
(Request req, Response resp)
src/main/java/net/freeutils/httpserver/HTTPServer.java:1091
MethodsetDirectoryIndex
Sets the directory index file. For every request whose URI ends with a '/' (i.e. a directory), the index file is appended to the path, and the resulti
src/main/java/net/freeutils/httpserver/HTTPServer.java:895
MethodsetExecutor
Sets the executor used in servicing HTTP connections. If null, a default executor is used. The caller is responsible for shutting down the provided ex
src/main/java/net/freeutils/httpserver/HTTPServer.java:1971
MethodsetSocketTimeout
Sets the socket timeout for established connections. @param timeout the socket timeout in milliseconds
src/main/java/net/freeutils/httpserver/HTTPServer.java:1962
Methodstop
Stops this server. If it is already stopped, does nothing. Note that if an {@link #setExecutor Executor} was set, it must be closed separately.
src/main/java/net/freeutils/httpserver/HTTPServer.java:2050
Methodwrite
Writes a chunk containing the given byte. This method initializes a new chunk of size 1, and then writes the byte as the chunk data. @param b the byt
src/main/java/net/freeutils/httpserver/HTTPServer.java:446
← previous101–145 of 145, ranked by callers